History

drm/amdgpu: handle gfx12 in amdgpu_display_verify_sizes

It verified GFX9-11 swizzle modes on GFX12, which has undefined behavior.

Marek Olšák committed 2 years ago

Commit 8dd14261 parent c2fad732 files · +28 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/drm_fourcc.h+2−0
@@ -1506,6 +1506,8 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier) · 1505 unmodified lines
15061506 * 6 - 64KB_3D
15071507 * 7 - 256KB_3D
15081508 */
1509+#define AMD_FMT_MOD_TILE_GFX12_256B_2D 1
1510+#define AMD_FMT_MOD_TILE_GFX12_4K_2D 2
15091511 #define AMD_FMT_MOD_TILE_GFX12_64K_2D 3
15101512 #define AMD_FMT_MOD_TILE_GFX12_256K_2D 4
15111513