mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: enable DCC for concurrent images on GFX10
The driver now supports DCC stores on GFX10 that means that we can keep DCC compressed on all layouts/queues. This should help games which use aync compute or which declare all images as concurrent like Youngblood. 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/9850>
This commit is contained in:
parent
37d48de83e
commit
da166f648f
1 changed files with 6 additions and 1 deletions
|
|
@ -149,7 +149,12 @@ radv_image_use_fast_clear_for_image(const struct radv_device *device,
|
||||||
}
|
}
|
||||||
|
|
||||||
return image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT &&
|
return image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT &&
|
||||||
image->exclusive;
|
(image->exclusive ||
|
||||||
|
/* Enable DCC for concurrent images if stores are
|
||||||
|
* supported because that means we can keep DCC compressed on
|
||||||
|
* all layouts/queues.
|
||||||
|
*/
|
||||||
|
radv_image_use_dcc_image_stores(device, image));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue