diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2015-08-12 15:20:42 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2015-08-31 10:32:13 +0300 |
commit | e7dbbc88d50456d1d366dc994e8c6eda44b70874 (patch) | |
tree | 99f064aacad2a4222516d8efee6e8647633b4d82 | |
parent | 72273928c8d8c00c2e4d88e0a17c2096208b5ff9 (diff) |
arb_shader_image_size/builtin: Fix the CubeMap image test
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
-rwxr-xr-x | tests/spec/arb_shader_image_size/builtin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/spec/arb_shader_image_size/builtin.c b/tests/spec/arb_shader_image_size/builtin.c index cb427df53..48a1d1ed1 100755 --- a/tests/spec/arb_shader_image_size/builtin.c +++ b/tests/spec/arb_shader_image_size/builtin.c @@ -104,6 +104,15 @@ check(const struct grid_info grid, struct image_info img_src) */ ret &= check_pixels(img, pixels, img_src.size.x, img_src.size.y, img_src.size.z / 6.0, img_src.size.w); + } else if (img_src.target->target == GL_TEXTURE_CUBE_MAP) { + /* Unlike image-load-store's size (exported by the framework + * used for this test), image-size reports only the size of one + * face, not including the number of faces. From the + * ARB_shader_image_size extension: + * "Cube images return the dimensions of one face." + */ + ret &= check_pixels(img, pixels, img_src.size.x, img_src.size.y, + 1.0, 1.0); } else if (image_target_samples(img_src.target) > 1) { /* Unlike image-load-store's size (exported by the framework * used for this test), image-size does not report the sample |