Mesa (main): radeonsi: ignore AMD_DEBUG=nodcc if the texture is imported
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 22 21:24:19 UTC 2022
Module: Mesa
Branch: main
Commit: 6fc94500c0d36abd3e27f6dbbb2650d21433b4c8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fc94500c0d36abd3e27f6dbbb2650d21433b4c8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Mar 11 01:40:32 2022 -0500
radeonsi: ignore AMD_DEBUG=nodcc if the texture is imported
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15965>
---
src/gallium/drivers/radeonsi/si_texture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c
index 5f5965e5aa9..ecb57f685a5 100644
--- a/src/gallium/drivers/radeonsi/si_texture.c
+++ b/src/gallium/drivers/radeonsi/si_texture.c
@@ -205,7 +205,7 @@ static int si_init_surface(struct si_screen *sscreen, struct radeon_surf *surfac
}
/* Disable DCC? (it can't be disabled if modifiers are used) */
- if (sscreen->info.chip_class >= GFX8 && modifier == DRM_FORMAT_MOD_INVALID) {
+ if (sscreen->info.chip_class >= GFX8 && modifier == DRM_FORMAT_MOD_INVALID && !is_imported) {
/* Global options that disable DCC. */
if (ptex->flags & SI_RESOURCE_FLAG_DISABLE_DCC)
flags |= RADEON_SURF_DISABLE_DCC;
More information about the mesa-commit
mailing list