mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Revert "radv: Do not decompress on LAYOUT_GENERAL."
Causes issues with a bunch of games with DXVK.
Fixes: 50add1b33a "radv: Do not decompress on LAYOUT_GENERAL."
Acked-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f3af7886fe
commit
b4dad3afaa
1 changed files with 3 additions and 3 deletions
|
|
@ -1623,7 +1623,7 @@ bool radv_layout_has_htile(const struct radv_image *image,
|
||||||
unsigned queue_mask)
|
unsigned queue_mask)
|
||||||
{
|
{
|
||||||
if (radv_image_is_tc_compat_htile(image))
|
if (radv_image_is_tc_compat_htile(image))
|
||||||
return !in_render_loop;
|
return layout != VK_IMAGE_LAYOUT_GENERAL;
|
||||||
|
|
||||||
return radv_image_has_htile(image) &&
|
return radv_image_has_htile(image) &&
|
||||||
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
|
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
|
||||||
|
|
@ -1637,7 +1637,7 @@ bool radv_layout_is_htile_compressed(const struct radv_image *image,
|
||||||
unsigned queue_mask)
|
unsigned queue_mask)
|
||||||
{
|
{
|
||||||
if (radv_image_is_tc_compat_htile(image))
|
if (radv_image_is_tc_compat_htile(image))
|
||||||
return !in_render_loop;
|
return layout != VK_IMAGE_LAYOUT_GENERAL;
|
||||||
|
|
||||||
return radv_image_has_htile(image) &&
|
return radv_image_has_htile(image) &&
|
||||||
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
|
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
|
||||||
|
|
@ -1665,7 +1665,7 @@ bool radv_layout_dcc_compressed(const struct radv_device *device,
|
||||||
!radv_support_storage_dcc(device->physical_device))
|
!radv_support_storage_dcc(device->physical_device))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return radv_image_has_dcc(image) &&!in_render_loop;
|
return radv_image_has_dcc(image) && layout != VK_IMAGE_LAYOUT_GENERAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue