mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
radv: Disable HTILE on exclusive images with transfer queues when SDMA doesn't support it.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25834>
This commit is contained in:
parent
1764259ba8
commit
5c30d462b9
1 changed files with 6 additions and 0 deletions
|
|
@ -2325,6 +2325,12 @@ bool
|
|||
radv_layout_is_htile_compressed(const struct radv_device *device, const struct radv_image *image, VkImageLayout layout,
|
||||
unsigned queue_mask)
|
||||
{
|
||||
/* Don't compress exclusive images used on transfer queues when SDMA doesn't support HTILE.
|
||||
* Note that HTILE is already disabled on concurrent images when not supported.
|
||||
*/
|
||||
if (queue_mask == BITFIELD_BIT(RADV_QUEUE_TRANSFER) && !device->physical_device->rad_info.sdma_supports_compression)
|
||||
return false;
|
||||
|
||||
switch (layout) {
|
||||
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue