mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radv: only keep concurrent MSAA images compressed if TC-compat CMASK
Otherwise, we need a FMASK_DECOMPRESS which is only supported on the gfx queue. Fixes rendering with Forza Horizon 4 on Polaris10. 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/10482>
This commit is contained in:
parent
80f55e5163
commit
8b31092bcd
1 changed files with 3 additions and 1 deletions
|
|
@ -2001,7 +2001,9 @@ radv_layout_fmask_compressed(const struct radv_device *device, const struct radv
|
|||
(queue_mask & (1u << RADV_QUEUE_COMPUTE)))
|
||||
return false;
|
||||
|
||||
return layout != VK_IMAGE_LAYOUT_GENERAL;
|
||||
/* Only compress concurrent images if TC-compat CMASK is enabled (no FMASK decompression). */
|
||||
return layout != VK_IMAGE_LAYOUT_GENERAL &&
|
||||
(queue_mask == (1u << RADV_QUEUE_GENERAL) || radv_image_is_tc_compat_cmask(image));
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue