glsl: don't reference shader prog data during cache fallback

We already have a reference.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Timothy Arceri
2016-11-20 17:48:27 +11:00
committed by Timothy Arceri
parent 2f19accc5e
commit 0e9991f957
2 changed files with 4 additions and 2 deletions

View File

@@ -2197,7 +2197,8 @@ link_intrastage_shaders(void *mem_ctx,
return NULL;
}
_mesa_reference_shader_program_data(ctx, &gl_prog->sh.data, prog->data);
if (!prog->data->cache_fallback)
_mesa_reference_shader_program_data(ctx, &gl_prog->sh.data, prog->data);
/* Don't use _mesa_reference_program() just take ownership */
linked->Program = gl_prog;