Module: Mesa
Branch: master
Commit: 001c1105f1d9f50955731ab1e272fd7f24aa33ad
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=001c1105f1d9f50955731ab1e272fd7f24aa33ad

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Jan 13 10:38:04 2021 +0100

radv: enable DCC for mipmaps on GFX10+

Seems to work fine.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8468>

---

 src/amd/vulkan/radv_image.c | 9 ++-------
 1 file 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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to