i965: Fix num_uniforms count for scalar GS.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Nov 2015 21:29:16 +0000 (13:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 22 Nov 2015 08:03:21 +0000 (00:03 -0800)
commit86fc97da0627cd4a81c2e190d2e157571eead111
tree1459e7de9632317d1668c1359617505b75ab9aad
parent4cff16bc3a84569da05e672c8226931678aa62c0
i965: Fix num_uniforms count for scalar GS.

I noticed that brw_vs.c does this.

I believe the point is that nir->num_uniforms is either counted in
scalar components (in scalar mode), or vec4 slots (in vector mode).
But we want param_count to be in scalar components regardless, so
we have to scale up in vector mode.

We don't have to scale up in scalar mode, though.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_gs.c