xf86-video-amdgpu: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 14 06:28:56 UTC 2024


 configure.ac        |    4 ++--
 src/amdgpu_glamor.c |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 04bc88d997ceec4c3681d85faa5e5bb5120b170d
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sat Jun 1 13:54:05 2024 -0400

    Check GFX12 swizzle mode correctly
    
    libdrm 2.4.121 is required to get the new FAMILY definition.

diff --git a/configure.ac b/configure.ac
index 192c7b1..160bcbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,8 +70,8 @@ XORG_DRIVER_CHECK_EXT(XV, videoproto)
 XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
 
 # Checks for libraries.
-PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.89])
-PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu >= 2.4.76])
+PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.121])
+PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu >= 2.4.121])
 PKG_CHECK_MODULES(GBM, [gbm])
 
 # Obtain compiler/linker options for the driver dependencies
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index 50ec54f..4ecc335 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -357,7 +357,9 @@ amdgpu_glamor_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr secondary,
 
 	tiling_info = amdgpu_pixmap_get_tiling_info(pixmap);
 
-	if (info->family >= AMDGPU_FAMILY_AI)
+	if (info->family >= AMDGPU_FAMILY_GC_12_0_0)
+		is_linear = AMDGPU_TILING_GET(tiling_info, GFX12_SWIZZLE_MODE) == 0;
+	else if (info->family >= AMDGPU_FAMILY_AI)
 		is_linear = AMDGPU_TILING_GET(tiling_info, SWIZZLE_MODE) == 0;
 	else
 		is_linear = AMDGPU_TILING_GET(tiling_info, ARRAY_MODE) == 1;


More information about the xorg-commit mailing list