main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 11 Mar 2018 09:18:55 +0000 (01:18 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 19 Mar 2018 16:57:09 +0000 (09:57 -0700)
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 <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/program_binary.c

index 3df70059342349780992e521478ae9b375b46e10..021f6315e729c5f89285a324afe749b7cc07efce 100644 (file)
@@ -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;
 }