summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-04-26 11:55:46 -0600
committerBrian Paul <[email protected]>2018-04-30 21:13:53 -0600
commit31ab0427a767c6c8377c00203e87bf0a03ac3247 (patch)
tree50894d3f06cb90ddd9e4eb855ce1825e8199ddbf /src/compiler/glsl/tests
parentefec712d515a329dbd20fd867de9601c4d4a0915 (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rw-r--r--src/compiler/glsl/tests/uniform_initializer_utils.cpp6
1 files changed, 6 insertions, 0 deletions
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;
}