summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2018-03-11 01:18:55 -0800
committerJordan Justen <jordan.l.justen@intel.com>2018-03-13 12:37:18 -0700
commit66aaafee527995e68ea4b65bce0c29bb3db560cd (patch)
treec1e95f79c141dd88514276e0a53a2e166f99c6d6
parent154098492233a0cca7e32d91207ed83ad0469f50 (diff)
main/program_binary: In ProgramBinary set link status as LINKING_SKIPPEDshader-cache-xform-fb+prog-bin
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. Cc: Timothy Arceri <tarceri@itsqueeze.com> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r--src/mesa/main/program_binary.c2
1 files changed, 1 insertions, 1 deletions
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;
}