summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-09 10:10:26 +1000
committerIan Romanick <[email protected]>2017-01-20 15:41:23 -0800
commit923aebdd464e0463db28c1824b0bc12a538937a5 (patch)
tree72900460edfb0e5fcb6e24b1f687dd751160f38f
parent9ba9a7f854dd702364d0aaa02cb7fbf44aea5888 (diff)
glsl/ast: Add 64-bit integer support in some places.
Just add support in two more places in ast parsing. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/compiler/glsl/ast_to_hir.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 486a0b8f3ee..0cd552eb490 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -3864,6 +3864,8 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
"varying variables may not be of type struct");
break;
case GLSL_TYPE_DOUBLE:
+ case GLSL_TYPE_UINT64:
+ case GLSL_TYPE_INT64:
break;
default:
_mesa_glsl_error(loc, state, "illegal type for a varying variable");
@@ -4922,6 +4924,9 @@ ast_declarator_list::hir(exec_list *instructions,
switch (check_type->base_type) {
case GLSL_TYPE_FLOAT:
break;
+ case GLSL_TYPE_UINT64:
+ case GLSL_TYPE_INT64:
+ break;
case GLSL_TYPE_UINT:
case GLSL_TYPE_INT:
if (state->is_version(120, 300))