From: Jordan Justen Date: Thu, 19 Apr 2018 23:14:28 +0000 (-0700) Subject: st/mesa: Skip serializing driver_cache_blob if it exists X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c510dd22a907cf1f2d4ab5d7378a0f82558823d0;p=mesa.git 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 --- 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);