aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2018-04-19 16:14:28 -0700
committerJordan Justen <[email protected]>2018-07-09 23:02:32 -0700
commitc510dd22a907cf1f2d4ab5d7378a0f82558823d0 (patch)
treee9443786101ebd09e2103a27ea5a6d665f08fa3a /src/mesa
parent2a55553be3336d5bc969a7569cccbfab85671153 (diff)
st/mesa: Skip serializing driver_cache_blob if it exists
Previously the mesa core code would not call to serialize the driver_cache_blob if it existed. We will update it to always call to serialize the driver_cache_blob meaning we should avoid re-serializing it under mesa/state_tracker. Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_shader_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_shader_cache.c b/src/mesa/state_tracker/st_shader_cache.c
index 17f84180cae..3f8d2d110ce 100644
--- a/src/mesa/state_tracker/st_shader_cache.c
+++ b/src/mesa/state_tracker/st_shader_cache.c
@@ -74,6 +74,9 @@ static void
st_serialise_ir_program(struct gl_context *ctx, struct gl_program *prog,
bool nir)
{
+ if (prog->driver_cache_blob)
+ return;
+
struct blob blob;
blob_init(&blob);