summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-21 12:36:59 +0100
committerSimon Ser <contact@emersion.fr>2023-02-09 10:41:58 +0100
commit6c4c48e61c15757f6df44ad71a7b1e58258f42b3 (patch)
tree4778b2537b845c5fd926ffed0d42a3724474c18d
parent0e2c7d05712d65903a9b77fb9f960ddff43bac64 (diff)
xf86drm: add support for printing AMD GFX11 modifiers
See kernel commit 543036a2de71 ("drm/amd: Add GFX11 modifiers support to AMDGPU (v3)"). Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--xf86drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 52a1249d..3bb024ec 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -478,6 +478,9 @@ drmGetFormatModifierNameFromAmd(uint64_t modifier)
case AMD_FMT_MOD_TILE_VER_GFX10_RBPLUS:
str_tile_version = "GFX10_RBPLUS";
break;
+ case AMD_FMT_MOD_TILE_VER_GFX11:
+ str_tile_version = "GFX11";
+ break;
}
if (str_tile_version) {
@@ -505,6 +508,9 @@ drmGetFormatModifierNameFromAmd(uint64_t modifier)
case AMD_FMT_MOD_TILE_GFX9_64K_R_X:
str_tile = "GFX9_64K_R_X";
break;
+ case AMD_FMT_MOD_TILE_GFX11_256K_R_X:
+ str_tile = "GFX11_256K_R_X";
+ break;
}
if (str_tile)