mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
glsl/tests: add IMAGE type.
This fixes a warning when running make check. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
faaf13f6bf
commit
b53fbec01d
1 changed files with 3 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
|
|||
case GLSL_TYPE_UINT:
|
||||
case GLSL_TYPE_INT:
|
||||
case GLSL_TYPE_SAMPLER:
|
||||
case GLSL_TYPE_IMAGE:
|
||||
data.i[i] = values[idx];
|
||||
break;
|
||||
case GLSL_TYPE_FLOAT:
|
||||
|
|
@ -112,6 +113,7 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
|
|||
case GLSL_TYPE_UINT:
|
||||
case GLSL_TYPE_INT:
|
||||
case GLSL_TYPE_SAMPLER:
|
||||
case GLSL_TYPE_IMAGE:
|
||||
ASSERT_EQ(data.i[i], val->value.i[i]);
|
||||
break;
|
||||
case GLSL_TYPE_FLOAT:
|
||||
|
|
@ -212,6 +214,7 @@ verify_data(gl_constant_value *storage, unsigned storage_array_size,
|
|||
case GLSL_TYPE_UINT:
|
||||
case GLSL_TYPE_INT:
|
||||
case GLSL_TYPE_SAMPLER:
|
||||
case GLSL_TYPE_IMAGE:
|
||||
EXPECT_EQ(val->value.i[i], storage[i].i);
|
||||
break;
|
||||
case GLSL_TYPE_FLOAT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue