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>
Tue, 2 May 2017 20:40:45 +0000 (22:40 +0200)
commite0e01895b054847e41b98cbf3939520747a0f32d
treeef7e9aa02a6515ba31b57e164ce5a3f48b8479ad
parentece06defe77a77d2db40abeddee5a2e0e45654ce
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.

This time the Intel CI system doesn't report any failures.

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