diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_gs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs.c b/src/mesa/drivers/dri/i965/brw_vec4_gs.c index 85fb97999c7..8a9625b52af 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_gs.c +++ b/src/mesa/drivers/dri/i965/brw_vec4_gs.c @@ -68,6 +68,11 @@ do_gs_prog(struct brw_context *brw, rzalloc_array(NULL, const float *, param_count); c.prog_data.base.base.pull_param = rzalloc_array(NULL, const float *, param_count); + /* Setting nr_params here NOT to the size of the param and pull_param + * arrays, but to the number of uniform components vec4_visitor + * needs. vec4_visitor::setup_uniforms() will set it back to a proper value. + */ + c.prog_data.base.base.nr_params = ALIGN(param_count, 4) / 4 + gs->num_samplers; if (gp->program.OutputType == GL_POINTS) { /* When the output type is points, the geometry shader may output data |