Mesa (master): glsl: add switch case for MESA_SHADER_COMPUTE
Brian Paul
brianp at kemper.freedesktop.org
Wed Feb 26 20:32:35 UTC 2014
Module: Mesa
Branch: master
Commit: 863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b
Author: Brian Paul <brianp at vmware.com>
Date: Tue Feb 25 12:38:45 2014 -0700
glsl: add switch case for MESA_SHADER_COMPUTE
To fix warning about unhandled enum value.
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/glsl/ast_to_hir.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index f06baeb..8f6e901 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2221,6 +2221,9 @@ validate_explicit_location(const struct ast_type_qualifier *qual,
? (qual->location + FRAG_RESULT_DATA0)
: (qual->location + VARYING_SLOT_VAR0);
break;
+ case MESA_SHADER_COMPUTE:
+ assert(!"Unexpected shader type");
+ break;
}
} else {
var->data.location = qual->location;
More information about the mesa-commit
mailing list