summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_lexer.ll
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2014-04-27 16:03:53 +1200
committerChris Forbes <chrisf@ijw.co.nz>2014-06-04 18:56:03 +1200
commit4b756b20c446bbaf0911d1b66c5a405ab3b133ef (patch)
tree67b52b3734b059baf0e2e8fbd603977704781c1b /src/glsl/glsl_lexer.ll
parent37ab3ddbf8ecc691b784fc2145242369f0b094f6 (diff)
downloadexternal_mesa3d-4b756b20c446bbaf0911d1b66c5a405ab3b133ef.zip
external_mesa3d-4b756b20c446bbaf0911d1b66c5a405ab3b133ef.tar.gz
external_mesa3d-4b756b20c446bbaf0911d1b66c5a405ab3b133ef.tar.bz2
glsl: add support for `precise` in type_qualifier
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/glsl/glsl_lexer.ll')
-rw-r--r--src/glsl/glsl_lexer.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index 7602351..6c3f9b6 100644
--- a/src/glsl/glsl_lexer.ll
+++ b/src/glsl/glsl_lexer.ll
@@ -338,6 +338,9 @@ samplerExternalOES {
return IDENTIFIER;
}
+ /* keywords available with ARB_gpu_shader5 */
+precise KEYWORD_WITH_ALT(400, 0, 400, 0, yyextra->ARB_gpu_shader5_enable, PRECISE);
+
/* keywords available with ARB_shader_image_load_store */
image1D KEYWORD_WITH_ALT(130, 300, 420, 0, yyextra->ARB_shader_image_load_store_enable, IMAGE1D);
image2D KEYWORD_WITH_ALT(130, 300, 420, 0, yyextra->ARB_shader_image_load_store_enable, IMAGE2D);