diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index d9d9414543d..7679b6eb31a 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -81,6 +81,9 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) struct intel_context *intel = &brw->intel; unsigned int stage; + if (!_mesa_ir_link_shader(ctx, prog)) + return false; + for (stage = 0; stage < ARRAY_SIZE(prog->_LinkedShaders); stage++) { struct brw_shader *shader = (struct brw_shader *)prog->_LinkedShaders[stage]; @@ -148,9 +151,6 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) ralloc_free(mem_ctx); } - if (!_mesa_ir_link_shader(ctx, prog)) - return false; - if (!brw_shader_precompile(ctx, prog)) return false; |