diff options
author | Ilia Mirkin <[email protected]> | 2015-02-17 11:25:16 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-02-17 11:26:06 +1000 |
commit | b53fbec01d8c76de0dff78c8fbceac08b2d02d3a (patch) | |
tree | 7d6c2d055eb896d78fb548739258e543a7d36467 | |
parent | faaf13f6bf0ff826727af442beebc530ac1b74ac (diff) |
glsl/tests: add IMAGE type.
This fixes a warning when running make check.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/glsl/tests/uniform_initializer_utils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/tests/uniform_initializer_utils.cpp b/src/glsl/tests/uniform_initializer_utils.cpp index 6f47acd4cad..31dc9b78ae5 100644 --- a/src/glsl/tests/uniform_initializer_utils.cpp +++ b/src/glsl/tests/uniform_initializer_utils.cpp @@ -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: |