[Mesa-dev] [PATCH 3/3] glsl: Drop shader_bit_encoding version checks.

Kenneth Graunke kenneth at whitecape.org
Fri Sep 13 11:25:43 PDT 2013


We now set the ARB_shader_bit_encoding flag for versions that support
this functionality, so we don't need to double check it here.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: Ian Romanick <idr at freedesktop.org>
---
 src/glsl/builtin_functions.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index c468bd5..b020a7c 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -182,8 +182,7 @@ shader_texture_lod_and_rect(const _mesa_glsl_parse_state *state)
 static bool
 shader_bit_encoding(const _mesa_glsl_parse_state *state)
 {
-   return state->is_version(330, 300) ||
-          state->ARB_shader_bit_encoding_enable ||
+   return state->ARB_shader_bit_encoding_enable ||
           state->ARB_gpu_shader5_enable;
 }
 
-- 
1.8.3.4



More information about the mesa-dev mailing list