drm/amd: Add GFX11 modifiers support to AMDGPU (v3)
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Mon, 21 Feb 2022 20:33:05 +0000 (15:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:43:38 +0000 (16:43 -0400)
commit543036a2de71f14f8ad566c858e5e9ff61736a86
tree65783ad16fcb2058635c9e1b18f6f07fa9519824
parent49401d3a5c86f5ead12ea7cbe98031edb512b13a
drm/amd: Add GFX11 modifiers support to AMDGPU (v3)

GFX11 IP introduces new tiling mode. Various combinations of DCC
settings are possible and the most preferred settings must be exposed
for optimal use of the hardware.

add_gfx11_modifiers() is based on recommendation from Marek for the
preferred tiling modifier that are most efficient for the hardware.

v2: microtiling fix noticed by Marek
v3: keep Z tiling check

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