mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: enable DCC for mipmapped color textures on GFX8
It's tricky on GFX9, so only GFX8 for now. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
17f94e1984
commit
f179febde0
1 changed files with 7 additions and 2 deletions
|
|
@ -170,8 +170,13 @@ radv_use_dcc_for_image(struct radv_device *device,
|
|||
vk_format_get_plane_count(pCreateInfo->format) > 1)
|
||||
return false;
|
||||
|
||||
/* TODO: Enable DCC for mipmaps and array layers. */
|
||||
if (pCreateInfo->mipLevels > 1 || pCreateInfo->arrayLayers > 1)
|
||||
/* TODO: Enable DCC for mipmaps on GFX9+. */
|
||||
if (pCreateInfo->mipLevels > 1 &&
|
||||
device->physical_device->rad_info.chip_class >= GFX9)
|
||||
return false;
|
||||
|
||||
/* TODO: Enable DCC for array layers. */
|
||||
if (pCreateInfo->arrayLayers > 1)
|
||||
return false;
|
||||
|
||||
if (radv_surface_has_scanout(device, create_info))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue