From: Jordan Justen Date: Sun, 11 Mar 2018 09:18:55 +0000 (-0800) Subject: main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ed288363fe8dced45f06b7cd66adbbf703a2012;p=mesa.git main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED This change allows the disk shader cache to work with programs loaded with ProgramBinary. Drivers check for LINKING_SKIPPED, and if set, then they try to use the shader cache. Since the program loaded by ProgramBinary is similar to loading the shader from the disk cache, this is probably more appropriate. Signed-off-by: Jordan Justen Reviewed-by: Tapani Pälli Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/program_binary.c b/src/mesa/main/program_binary.c index 3df70059342..021f6315e72 100644 --- a/src/mesa/main/program_binary.c +++ b/src/mesa/main/program_binary.c @@ -287,5 +287,5 @@ _mesa_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog, return; } - sh_prog->data->LinkStatus = LINKING_SUCCESS; + sh_prog->data->LinkStatus = LINKING_SKIPPED; }