diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2021-01-13 10:38:04 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-13 13:42:04 +0000 |
commit | 001c1105f1d9f50955731ab1e272fd7f24aa33ad (patch) | |
tree | 6fe24554fe463cbffda71f48f50af296d5c49ef5 | |
parent | 825e2386dc3e5381cacb3ed1be8241b56e7d5798 (diff) |
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>
-rw-r--r-- | src/amd/vulkan/radv_image.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 371df177030..1573b3edc2e 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -184,13 +184,8 @@ radv_use_dcc_for_image(struct radv_device *device, device->physical_device->rad_info.chip_class >= GFX10) return false; - /* TODO: Enable DCC for mipmaps on GFX9+. */ - if (pCreateInfo->mipLevels > 1 && - device->physical_device->rad_info.chip_class >= GFX9) - return false; - - /* FIXME: Fix DCC+layers on GFX9. */ - if (pCreateInfo->arrayLayers > 1 && + /* FIXME: Fix DCC layers and mipmaps on GFX9. */ + if ((pCreateInfo->arrayLayers > 1 || pCreateInfo->mipLevels > 1) && device->physical_device->rad_info.chip_class == GFX9) return false; |