glsl: Silence warnings in the uniform initializer test about 16-bit types
They should probably get unit tests implemented, but this cleans up a
bunch of warnings in my build for now.
Fixes: 59f458cd87
("glsl: Add 16-bit types")
Cc: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -110,6 +110,9 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
|
||||
case GLSL_TYPE_INTERFACE:
|
||||
case GLSL_TYPE_SUBROUTINE:
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
case GLSL_TYPE_FLOAT16:
|
||||
case GLSL_TYPE_UINT16:
|
||||
case GLSL_TYPE_INT16:
|
||||
ASSERT_TRUE(false);
|
||||
break;
|
||||
}
|
||||
@@ -150,6 +153,9 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
|
||||
case GLSL_TYPE_INTERFACE:
|
||||
case GLSL_TYPE_SUBROUTINE:
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
case GLSL_TYPE_FLOAT16:
|
||||
case GLSL_TYPE_UINT16:
|
||||
case GLSL_TYPE_INT16:
|
||||
ASSERT_TRUE(false);
|
||||
break;
|
||||
}
|
||||
@@ -278,6 +284,9 @@ verify_data(gl_constant_value *storage, unsigned storage_array_size,
|
||||
case GLSL_TYPE_INTERFACE:
|
||||
case GLSL_TYPE_SUBROUTINE:
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
case GLSL_TYPE_FLOAT16:
|
||||
case GLSL_TYPE_UINT16:
|
||||
case GLSL_TYPE_INT16:
|
||||
ASSERT_TRUE(false);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user