projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a8883
)
nir: add missing GLSL_TYPE_DOUBLE case in type_size()
author
Brian Paul
<brianp@vmware.com>
Thu, 19 Feb 2015 16:25:42 +0000
(09:25 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 19 Feb 2015 22:36:59 +0000
(15:36 -0700)
To silence compiler warning about unhandled switch case.
v2: move GLSL_TYPE_DOUBLE to the "not reached" section, per Ilia.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/nir/nir_lower_io.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_lower_io.c
b/src/glsl/nir/nir_lower_io.c
index ddbc249371b11eec5d350a2b8c3463627e7eb12d..207f8daa1bc8414adf4b298bd650004630ef1908 100644
(file)
--- a/
src/glsl/nir/nir_lower_io.c
+++ b/
src/glsl/nir/nir_lower_io.c
@@
-69,6
+69,7
@@
type_size(const struct glsl_type *type)
return 0;
case GLSL_TYPE_VOID:
case GLSL_TYPE_ERROR:
+ case GLSL_TYPE_DOUBLE:
unreachable("not reached");
}