diff options
author | Timothy Arceri <[email protected]> | 2016-10-27 15:59:46 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-11-17 12:52:24 +1100 |
commit | ba40c8b03cb5250af771c50ff785bd5ec293e3c1 (patch) | |
tree | d352313b0489781f196bbf1d565d38345c423563 /src/mesa/drivers/dri/i965/brw_vs.c | |
parent | 9c2042f2ce4c6f8746153138692fb06954ec2ed7 (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_vs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index edb577f570a..86cd1bf8bca 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -122,8 +122,7 @@ brw_codegen_vs_prog(struct brw_context *brw, */ int param_count = vp->program.nir->num_uniforms / 4; - if (vs) - prog_data.base.base.nr_image_params = vs->base.NumImages; + prog_data.base.base.nr_image_params = vp->program.info.num_images; /* vec4_visitor::setup_uniform_clipplane_values() also uploads user clip * planes as uniforms. |