[Mesa-dev] [PATCH 03/45] mesa/st: Handle 16-bit types at st_glsl_attrib_type_size

Alejandro PiƱeiro apinheiro at igalia.com
Thu Jul 13 14:35:07 UTC 2017


From: Eduardo Lima Mitev <elima at igalia.com>

Note that this doesn't mean full support on st for those types. This
change was done to avoid a "not handle in switch" warning.
---
 src/mesa/state_tracker/st_glsl_types.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/state_tracker/st_glsl_types.cpp b/src/mesa/state_tracker/st_glsl_types.cpp
index 37c3164..02cd63d 100644
--- a/src/mesa/state_tracker/st_glsl_types.cpp
+++ b/src/mesa/state_tracker/st_glsl_types.cpp
@@ -38,7 +38,10 @@ st_glsl_attrib_type_size(const struct glsl_type *type, bool is_vs_input)
    switch (type->base_type) {
    case GLSL_TYPE_UINT:
    case GLSL_TYPE_INT:
+   case GLSL_TYPE_UINT16:
+   case GLSL_TYPE_INT16:
    case GLSL_TYPE_FLOAT:
+   case GLSL_TYPE_HALF_FLOAT:
    case GLSL_TYPE_BOOL:
       if (type->is_matrix()) {
          return type->matrix_columns;
-- 
2.9.3



More information about the mesa-dev mailing list