diff options
author | Samuel Pitoiset <[email protected]> | 2017-10-12 22:55:32 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-10-14 12:25:48 +0200 |
commit | 0c1aecf177bbabff16aaef301483f689e8b850bb (patch) | |
tree | 79e2daf7f53c5eb5713363b612376f5455c91c56 /src/amd/vulkan/radv_cmd_buffer.c | |
parent | a4c08c8cd5257fd628ab829bec0a119076c8f641 (diff) |
radv: do not allocate CMASK for non-MSSA images with 128 bit formats
This saves some useless CMASK initializations/eliminations in
the Vulkan SSAO demo.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 39dfffc3762..397f0db26c0 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3530,7 +3530,7 @@ static void radv_handle_image_transition(struct radv_cmd_buffer *cmd_buffer, dst_queue_mask, range, pending_clears); - if (image->cmask.size) + if (image->cmask.size || image->fmask.size) radv_handle_cmask_image_transition(cmd_buffer, image, src_layout, dst_layout, src_queue_mask, dst_queue_mask, range); |