summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-02-25 12:38:45 -0700
committerBrian Paul <[email protected]>2014-02-26 13:29:16 -0700
commit863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b (patch)
tree7640fe38da04723bfec58ca933b3e0ec0e1f27f0 /src/glsl/ast_to_hir.cpp
parentfe8f3bef31b91fe9296711e0f9dbf511ac9737bf (diff)
glsl: add switch case for MESA_SHADER_COMPUTE
To fix warning about unhandled enum value. Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index f06baeb9f31..8f6e90174e0 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;