projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe8f3be
)
glsl: add switch case for MESA_SHADER_COMPUTE
author
Brian Paul
<brianp@vmware.com>
Tue, 25 Feb 2014 19:38:45 +0000
(12:38 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index f06baeb9f31cf6654702a2c17433f706cc682838..8f6e90174e031ff52780db6e7f50405ecea38954 100644
(file)
--- 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;