mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
radv: do not perform a FMASK expand for non-writeable MSAA images
It should only be required for writeable MSAA images. 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/7292>
This commit is contained in:
parent
cb12879401
commit
48e83f7665
1 changed files with 3 additions and 1 deletions
|
|
@ -6076,7 +6076,9 @@ static void radv_handle_color_image_transition(struct radv_cmd_buffer *cmd_buffe
|
|||
fce_eliminate = true;
|
||||
}
|
||||
|
||||
if (radv_image_has_fmask(image)) {
|
||||
if (radv_image_has_fmask(image) &&
|
||||
(image->usage & (VK_IMAGE_USAGE_STORAGE_BIT |
|
||||
VK_IMAGE_USAGE_TRANSFER_DST_BIT))) {
|
||||
if (src_layout != VK_IMAGE_LAYOUT_GENERAL &&
|
||||
dst_layout == VK_IMAGE_LAYOUT_GENERAL) {
|
||||
/* A FMASK decompress is required before doing
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue