drm/amd: GFX12 changes for converting tiling flags to modifiers
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 5 Mar 2024 19:38:31 +0000 (14:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:58 +0000 (17:22 -0400)
commit96557f785a7701c7e0c327bd25b701d0eb5dcee0
treebed67e0380ac43cec03b5b0d261f67db510236fe
parent7d09d80b93ab15c1ff969facb8f6111fb9c084ce
drm/amd: GFX12 changes for converting tiling flags to modifiers

GFX12 swizzle mode and GCC formats changed and is much simpler. Use a
seperate function for the same. Changes:

* Swizzle mode is now 3 bits only
* DCC enablement doesn't come from tiling_flags, it is always set in modifiers
* DCC max compressed block size of 128B

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
include/uapi/drm/drm_fourcc.h