i965: Don't link when the program was found in the disk cache
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 25 Feb 2017 10:37:57 +0000 (02:37 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:54 +0000 (23:36 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_link.cpp

index 988dd3a73d7af9a2530ddbd3d4840846c069f77c..9019db56aa064ce6ec9b0c21bea4bfef8270b812 100644 (file)
@@ -225,6 +225,9 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
    unsigned int stage;
    struct shader_info *infos[MESA_SHADER_STAGES] = { 0, };
 
+   if (shProg->data->LinkStatus == linking_skipped)
+      return GL_TRUE;
+
    for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) {
       struct gl_linked_shader *shader = shProg->_LinkedShaders[stage];
       if (!shader)