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_meta_clear.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_meta_clear.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 476a5913ae4..dd0c1a01d32 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -1027,11 +1027,6 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer, radv_set_dcc_need_cmask_elim_pred(cmd_buffer, iview->image, !can_avoid_fast_clear_elim); } else { - - if (iview->image->surface.bpe > 8) { - /* 128 bit formats not supported */ - return false; - } radv_fill_buffer(cmd_buffer, iview->image->bo, iview->image->offset + iview->image->cmask.offset, iview->image->cmask.size, 0); |