projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e16b92a
)
st/mesa: add missing GLSL_TYPE_[U]INT8 cases in st_glsl_type_dword_size()
author
Brian Paul
<brianp@vmware.com>
Thu, 29 Mar 2018 01:38:00 +0000
(19:38 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Mar 2018 17:04:32 +0000
(11:04 -0600)
Silences a compiler warning about unhandled enum switch cases.
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
src/mesa/state_tracker/st_glsl_types.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_types.cpp
b/src/mesa/state_tracker/st_glsl_types.cpp
index baba2d414b403db81710126ea54df04556fac54d..42d4e9cef2d9fd1a21f59e45c429da7b7b8dfdfa 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_types.cpp
+++ b/
src/mesa/state_tracker/st_glsl_types.cpp
@@
-124,6
+124,9
@@
st_glsl_type_dword_size(const struct glsl_type *type)
case GLSL_TYPE_INT16:
case GLSL_TYPE_FLOAT16:
return DIV_ROUND_UP(type->components(), 2);
+ case GLSL_TYPE_UINT8:
+ case GLSL_TYPE_INT8:
+ return DIV_ROUND_UP(type->components(), 4);
case GLSL_TYPE_DOUBLE:
case GLSL_TYPE_UINT64:
case GLSL_TYPE_INT64: