mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
radv: enable DCC for mipmaps on GFX10+
Seems to work fine. 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/8468>
This commit is contained in:
parent
825e2386dc
commit
001c1105f1
1 changed files with 2 additions and 7 deletions
|
|
@ -184,13 +184,8 @@ radv_use_dcc_for_image(struct radv_device *device,
|
||||||
device->physical_device->rad_info.chip_class >= GFX10)
|
device->physical_device->rad_info.chip_class >= GFX10)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* TODO: Enable DCC for mipmaps on GFX9+. */
|
/* FIXME: Fix DCC layers and mipmaps on GFX9. */
|
||||||
if (pCreateInfo->mipLevels > 1 &&
|
if ((pCreateInfo->arrayLayers > 1 || pCreateInfo->mipLevels > 1) &&
|
||||||
device->physical_device->rad_info.chip_class >= GFX9)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* FIXME: Fix DCC+layers on GFX9. */
|
|
||||||
if (pCreateInfo->arrayLayers > 1 &&
|
|
||||||
device->physical_device->rad_info.chip_class == GFX9)
|
device->physical_device->rad_info.chip_class == GFX9)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue