diff options
author | Martin Peres <[email protected]> | 2015-08-21 16:25:14 +0300 |
---|---|---|
committer | Martin Peres <[email protected]> | 2015-08-21 17:48:14 +0300 |
commit | f142e64b2938ab3ebc42fd40436a1de74e3ed2e2 (patch) | |
tree | 4284eebec82090b1d6de6deed950057f008da2cb /src | |
parent | df5cdec1329507d5ac52a6d3db49c2608b9226bc (diff) |
i965: allow image_size on float images
This got missed because the piglit test only tested int images to avoid a
combinatiorial explosion of format, targets, stages and sizes which
takes more than 5 minutes to test on nvidia's driver.
This patch also drops the IMAGE_FUNCTION_AVAIL_ATOMIC which is not applicable
to the image_size codepath but was not hurting in any way.
Signed-off-by: Martin Peres <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/builtin_functions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 57bed86e5e5..1bc3de4aec5 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -2739,7 +2739,8 @@ builtin_builder::add_image_functions(bool glsl) add_image_function(glsl ? "imageSize" : "__intrinsic_image_size", "__intrinsic_image_size", - &builtin_builder::_image_size_prototype, 1, atom_flags); + &builtin_builder::_image_size_prototype, 1, + flags | IMAGE_FUNCTION_SUPPORTS_FLOAT_DATA_TYPE); } ir_variable * |