From: Brian Paul Date: Thu, 26 Apr 2018 17:55:46 +0000 (-0600) Subject: glsl/tests: add GLSL_TYPE_UINT8, GLSL_TYPE_INT8 cases to switch statements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31ab0427a767c6c8377c00203e87bf0a03ac3247;p=mesa.git glsl/tests: add GLSL_TYPE_UINT8, GLSL_TYPE_INT8 cases to switch statements To silence warnings about unhandled switch values. Untested otherwise. v2: move the INT/UINT8 cases after the INT/UINT16 cases, per Eric. Reviewed-by: Eric Anholt --- diff --git a/src/compiler/glsl/tests/uniform_initializer_utils.cpp b/src/compiler/glsl/tests/uniform_initializer_utils.cpp index 0d7fa26752f..8c00c69b295 100644 --- a/src/compiler/glsl/tests/uniform_initializer_utils.cpp +++ b/src/compiler/glsl/tests/uniform_initializer_utils.cpp @@ -113,6 +113,8 @@ generate_data_element(void *mem_ctx, const glsl_type *type, case GLSL_TYPE_FLOAT16: case GLSL_TYPE_UINT16: case GLSL_TYPE_INT16: + case GLSL_TYPE_UINT8: + case GLSL_TYPE_INT8: ASSERT_TRUE(false); break; } @@ -156,6 +158,8 @@ generate_data_element(void *mem_ctx, const glsl_type *type, case GLSL_TYPE_FLOAT16: case GLSL_TYPE_UINT16: case GLSL_TYPE_INT16: + case GLSL_TYPE_UINT8: + case GLSL_TYPE_INT8: ASSERT_TRUE(false); break; } @@ -287,6 +291,8 @@ verify_data(gl_constant_value *storage, unsigned storage_array_size, case GLSL_TYPE_FLOAT16: case GLSL_TYPE_UINT16: case GLSL_TYPE_INT16: + case GLSL_TYPE_UINT8: + case GLSL_TYPE_INT8: ASSERT_TRUE(false); break; }