]> git.baikalelectronics.ru Git - kernel.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)
commit295d24925adca1189ea71875a6b46afdb0a9722a
tree538e5646b18ab2e7f2c4e11264feffc1732bdd2c
parent7252fb03023c931029ad4ffc7c559c115da77c66
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