aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_gs.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-27 15:59:46 +1100
committerTimothy Arceri <[email protected]>2016-11-17 12:52:24 +1100
commitba40c8b03cb5250af771c50ff785bd5ec293e3c1 (patch)
treed352313b0489781f196bbf1d565d38345c423563 /src/mesa/drivers/dri/i965/brw_gs.c
parent9c2042f2ce4c6f8746153138692fb06954ec2ed7 (diff)
i965: get num_images from shader_info rather than gl_linked_shader
This is a step towards freeing gl_linked_shader after linking. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_gs.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c
index 77efa6382c5..6bdedb96574 100644
--- a/src/mesa/drivers/dri/i965/brw_gs.c
+++ b/src/mesa/drivers/dri/i965/brw_gs.c
@@ -125,9 +125,10 @@ brw_codegen_gs_prog(struct brw_context *brw,
prog_data.base.base.pull_param =
rzalloc_array(NULL, const gl_constant_value *, param_count);
prog_data.base.base.image_param =
- rzalloc_array(NULL, struct brw_image_param, gs->NumImages);
+ rzalloc_array(NULL, struct brw_image_param,
+ gp->program.info.num_images);
prog_data.base.base.nr_params = param_count;
- prog_data.base.base.nr_image_params = gs->NumImages;
+ prog_data.base.base.nr_image_params = gp->program.info.num_images;
brw_nir_setup_glsl_uniforms(gp->program.nir, prog, &gp->program,
&prog_data.base.base,