glsl: add switch case for MESA_SHADER_COMPUTE
authorBrian Paul <brianp@vmware.com>
Tue, 25 Feb 2014 19:38:45 +0000 (12:38 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Feb 2014 20:29:16 +0000 (13:29 -0700)
To fix warning about unhandled enum value.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/ast_to_hir.cpp

index f06baeb9f31cf6654702a2c17433f706cc682838..8f6e90174e031ff52780db6e7f50405ecea38954 100644 (file)
@@ -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;