From c510dd22a907cf1f2d4ab5d7378a0f82558823d0 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 19 Apr 2018 16:14:28 -0700 Subject: 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 Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_shader_cache.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3