summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_link.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
index dd6f895db07..1fe5ad66f54 100644
--- a/src/mesa/drivers/dri/i965/brw_link.cpp
+++ b/src/mesa/drivers/dri/i965/brw_link.cpp
@@ -316,11 +316,10 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
continue;
struct gl_program *prog = shader->Program;
- nir_shader *nir = shader->Program->nir;
- brw_shader_gather_info(nir, prog);
+ brw_shader_gather_info(prog->nir, prog);
- NIR_PASS_V(nir, nir_lower_samplers, shProg);
- NIR_PASS_V(nir, nir_lower_atomics, shProg);
+ NIR_PASS_V(prog->nir, nir_lower_samplers, shProg);
+ NIR_PASS_V(prog->nir, nir_lower_atomics, shProg);
infos[stage] = &prog->nir->info;