Skip to contentSkip to conversation

drm/fourcc: add AMD_FMT_MOD_TILE_GFX9_4K_D_X

PATCH In review Qiang Yu 4 participants 4 messages Oct 25, 2024 – Nov 11, 2024

Subsystems (2)
lore
Share & tools
lore

Qiang Yu

author
#0 lore raw

PATCH 1/1 drm/fourcc: add AMD_FMT_MOD_TILE_GFX9_4K_D_X

From: Qiang Yu <[email protected]>

This is used when radeonsi export small texture's modifier to user with eglExportDMABUFImageQueryMESA().

mesa changes is available here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658

---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -0
index 78abd819fd62..70f3b00b0681 100644
@@ -1516,6 +1516,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
  * 64K_D_2D on GFX12 is identical to 64K_D on GFX11.
  */
 #define AMD_FMT_MOD_TILE_GFX9_64K_D 10
+#define AMD_FMT_MOD_TILE_GFX9_4K_D_X 22
 #define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
 #define AMD_FMT_MOD_TILE_GFX9_64K_D_X 26
 #define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

BTW, we don't have to define everything here. We can use most of the 32 values freely.

Marek

Quoted 29 lines · Qiang Yu

From: Qiang Yu <[email protected]>

This is used when radeonsi export small texture's modifier to user with eglExportDMABUFImageQueryMESA().

mesa changes is available here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658

---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -1
index 78abd819fd62..70f3b00b0681 100644
@@ -1516,6 +1516,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
  * 64K_D_2D on GFX12 is identical to 64K_D on GFX11.
  */
 #define AMD_FMT_MOD_TILE_GFX9_64K_D 10
+#define AMD_FMT_MOD_TILE_GFX9_4K_D_X 22
 #define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
 #define AMD_FMT_MOD_TILE_GFX9_64K_D_X 26
 #define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27
--

2.43.0

#2 lore raw
In reply to Qiang Yu
Quoted 10 lines · Qiang Yu

From: Qiang Yu <[email protected]>

This is used when radeonsi export small texture's modifier to user with eglExportDMABUFImageQueryMESA().

mesa changes is available here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658

I assume you will push this directly to amd-staging-drm-next?

Alex

Quoted 19 lines
---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -1
index 78abd819fd62..70f3b00b0681 100644
@@ -1516,6 +1516,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
  * 64K_D_2D on GFX12 is identical to 64K_D on GFX11.
  */
 #define AMD_FMT_MOD_TILE_GFX9_64K_D 10
+#define AMD_FMT_MOD_TILE_GFX9_4K_D_X 22
 #define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
 #define AMD_FMT_MOD_TILE_GFX9_64K_D_X 26
 #define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27
--

2.43.0

#3 lore raw
Quoted 8 lines · Alex Deucher
Quoted 6 lines · Qiang Yu

From: Qiang Yu <[email protected]>

This is used when radeonsi export small texture's modifier to user with eglExportDMABUFImageQueryMESA().

Quoted 7 lines
Quoted 4 lines

mesa changes is available here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658

I assume you will push this directly to amd-staging-drm-next?

Yes, I did.

Quoted 20 lines
Quoted 20 lines
---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/drm_fourcc.h +1 -1
index 78abd819fd62..70f3b00b0681 100644
@@ -1516,6 +1516,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
  * 64K_D_2D on GFX12 is identical to 64K_D on GFX11.
  */
 #define AMD_FMT_MOD_TILE_GFX9_64K_D 10
+#define AMD_FMT_MOD_TILE_GFX9_4K_D_X 22
 #define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
 #define AMD_FMT_MOD_TILE_GFX9_64K_D_X 26
 #define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27
--

2.43.0