]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: expose additional modifier for DCN32/321
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 28 Jun 2022 20:25:28 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jun 2022 21:12:18 +0000 (17:12 -0400)
commitff15cea338d2c78e0086d55c8a9dd637a5dd3ccc
tree538e5646b18ab2e7f2c4e11264feffc1732bdd2c
parent7268f0a9e842c52fa73b9f5afc1bebcf9f7d48b7
drm/amd/display: expose additional modifier for DCN32/321

[Why&How]
Some userspace expect a backwards compatible modifier on DCN32/321. For
hardware with num_pipes more than 16, we expose the most efficient
modifier first. As a fall back method, we need to expose slightly inefficient
modifier AMD_FMT_MOD_TILE_GFX9_64K_R_X after the best option.

Also set the number of packers to fixed value as required per hardware
documentation. This value is cached during hardware initialization and
can be read through the base driver.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
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