glsl: set vector_elements to 1 for samplers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Apr 2017 11:49:13 +0000 (13:49 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Apr 2017 20:52:21 +0000 (22:52 +0200)
commit75a31a20af269c047661af33e28f793269537b79
tree2bd78e1c3e7f0b2f649106eb0e6f62c909c3fc9d
parentb295a528362239e4500c89e94e0af0cc78b896c1
glsl: set vector_elements to 1 for samplers

I don't see any reasons why vector_elements is 1 for images and
0 for samplers. This increases consistency and allows to clean
up some code a bit.

This will also help for ARB_bindless_texture.

No piglit regressions with RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl_types.cpp
src/mesa/main/uniform_query.cpp