[Mesa-dev] [PATCH] glsl: Enable extensions implied by GLSL 3.30

Ian Romanick idr at freedesktop.org
Fri Sep 13 09:13:48 PDT 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reported-by: Dan Ginsburg <dang at valvesoftware.com>
---
 src/glsl/glsl_parser_extras.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 3f65ca5..e92f36e 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -306,6 +306,11 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version,
    if (this->language_version == 300 && this->es_shader) {
       this->ARB_explicit_attrib_location_enable = true;
    }
+
+   if (this->language_version >= 330) {
+      this->ARB_shader_bit_encoding_enable = true;
+      this->ARB_explicit_attrib_location_enable = true;
+   }
 }
 
 extern "C" {
-- 
1.8.1.4



More information about the mesa-dev mailing list