st/mesa: add missing GLSL_TYPE_[U]INT8 cases in st_glsl_type_dword_size()
authorBrian Paul <brianp@vmware.com>
Thu, 29 Mar 2018 01:38:00 +0000 (19:38 -0600)
committerBrian 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

index baba2d414b403db81710126ea54df04556fac54d..42d4e9cef2d9fd1a21f59e45c429da7b7b8dfdfa 100644 (file)
@@ -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: