diff options
author | Jason Ekstrand <[email protected]> | 2017-02-09 12:00:51 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-13 09:24:49 -0800 |
commit | d49d275c415d60ae08dc3e52d8db11f19a44010f (patch) | |
tree | cce0de38e6f9f4164666f4c2fc2b8d5bbbf5598e /src/intel | |
parent | e233db6e93e523952577d0314ed68276bda34479 (diff) |
anv/blorp: Don't sanitize the swizzle for blorp_clear
BLORP is now smart enough to handle any swizzle (even those that contain
ZERO or ONE) in a reasonable manner. Just let BLORP handle it. This
fixes the following Vulkan CTS tests on Haswell:
- dEQP-VK.api.image_clearing.clear_color_image.1d_b4g4r4a4_unorm_pack16
- dEQP-VK.api.image_clearing.clear_color_image.2d_b4g4r4a4_unorm_pack16
- dEQP-VK.api.image_clearing.clear_color_image.3d_b4g4r4a4_unorm_pack16
Reviewed-by: Juan A. Suarez Romero <[email protected]>
Cc: "17.0" <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 759d2ae9444..4e7078bbfb3 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -832,8 +832,7 @@ void anv_CmdClearColorImage( } blorp_clear(&batch, &surf, - src_format.isl_format, - anv_swizzle_for_render(src_format.swizzle), + src_format.isl_format, src_format.swizzle, level, base_layer, layer_count, 0, 0, level_width, level_height, vk_to_isl_color(*pColor), color_write_disable); |