From fa18a427e929ecc04a9980e517db96663debea29 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Mar 2018 19:38:00 -0600 Subject: st/mesa: add missing GLSL_TYPE_[U]INT8 cases in st_glsl_type_dword_size() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Silences a compiler warning about unhandled enum switch cases. Reviewed-by: Mathias Fröhlich --- src/mesa/state_tracker/st_glsl_types.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_glsl_types.cpp b/src/mesa/state_tracker/st_glsl_types.cpp index baba2d414b4..42d4e9cef2d 100644 --- 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: -- cgit v1.2.3