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 <eric@anholt.net>
This commit is contained in:
Brian Paul 2018-04-26 11:55:46 -06:00
parent efec712d51
commit 31ab0427a7
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}