diff options
author | Anuj Phogat <[email protected]> | 2013-08-26 18:21:03 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2013-08-29 12:10:57 -0700 |
commit | 9c0b7be964f0cbb707ed11c2526a30eda5254d2e (patch) | |
tree | f5645d5f31abcce485bd5963d70642439fa0ba40 /src/gallium | |
parent | 1ecfdba98a346c8bb05ad9403e3a6412574215f4 (diff) |
glsl: Allow precision qualifiers for sampler types
GLSL 1.30 doesn't allow precision qualifiers on sampler types,
but in GLSL ES, sampler types are also allowed. This seems like
an oversight (since the intention of including these in GLSL 1.30
is to allow compatibility with ES shaders).
Currently, Mesa allows "default" precision qualifiers to be set for
sampler types in GLSL (commit d5948f2). This patch makes it follow
GLSL ES rules and also allow declaring sampler variables with a
precision qualifier in GLSL 1.30 (and later). e.g.
uniform lowp sampler2D sampler;
This fixes a shader compilation error in Khronos OpenGL conformance
test "depth_texture_mipmap".
V2: Update comments.
Signed-off-by: Ian Romanick <[email protected]>
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions