i965/vec4: Make type_size() return 0 for samplers.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 12 Sep 2014 05:07:41 +0000 (22:07 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 12 Sep 2014 23:35:39 +0000 (16:35 -0700)
commit7865026c04f6cc36dc81f993bc32ddda2806ecb5
tree8f44c96d4ebf77d3bba52cb7438ac3c5de7a666e
parent2408f166db1d81f2e9cc86b3f413ddba5ba537fa
i965/vec4: Make type_size() return 0 for samplers.

The FS backend has always used 0, and the VS backend has always used 1.
I think 1 is just working around other problems, and is incorrect.
Samplers are baked in; nothing uses the UNIFORM register we would
create, and we shouldn't upload any constant values for them.

Fixes ES3-CTS.shaders.struct.uniform.sampler_array_vertex.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp