From: Brian Paul Date: Tue, 25 Feb 2014 19:38:45 +0000 (-0700) Subject: glsl: add switch case for MESA_SHADER_COMPUTE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b;p=mesa.git glsl: add switch case for MESA_SHADER_COMPUTE To fix warning about unhandled enum value. Reviewed-by: Anuj Phogat --- 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;