From 6c4c48e61c15757f6df44ad71a7b1e58258f42b3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 21 Dec 2022 12:36:59 +0100 Subject: 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 Reviewed-by: Alex Deucher --- xf86drm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3