diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2021-01-12 14:16:16 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-13 11:13:47 +0000 |
commit | 735b808639bdb722886db4f33533afed82cb978c (patch) | |
tree | 70ac3ecd5f9ac223a7ace8a65533e5fe0227c1d4 /src/amd/vulkan | |
parent | 5331b1d9456e674751ffe0d68c08e0c6d3ea0d17 (diff) |
radv: only use predication if the FCE value is allocated
The FCE predicate value is only allocated if DCC is enabled.
We only want to use predication for DCC decompressions and for FCE
but not having FMASK doesn't mean the predicate is allocated.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4075
Fixes: 6e7008e94ba ("radv: do not predicate FMASK decompression when DCC+MSAA is used")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8441>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_meta_fast_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c index 086749dbe55..05be3da005b 100644 --- a/src/amd/vulkan/radv_meta_fast_clear.c +++ b/src/amd/vulkan/radv_meta_fast_clear.c @@ -746,7 +746,7 @@ radv_emit_color_decompress(struct radv_cmd_buffer *cmd_buffer, assert(cmd_buffer->queue_family_index == RADV_QUEUE_GENERAL); if ((decompress_dcc && radv_dcc_enabled(image, subresourceRange->baseMipLevel)) || - (!(radv_image_has_fmask(image) && !image->tc_compatible_cmask))) { + (!(radv_image_has_fmask(image) && !image->tc_compatible_cmask) && image->fce_pred_offset)) { use_predication = true; } |