From 863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 25 Feb 2014 12:38:45 -0700 Subject: glsl: add switch case for MESA_SHADER_COMPUTE To fix warning about unhandled enum value. Reviewed-by: Anuj Phogat --- src/glsl/ast_to_hir.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/ast_to_hir.cpp') 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; -- cgit v1.2.3