]> git.hungrycats.org Git - linux/commit
drm/amd/display: Test GFX9/GFX10 plane modifiers
authorAlex Hung <alex.hung@amd.com>
Fri, 26 Jun 2026 23:35:52 +0000 (17:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:38 +0000 (09:15 -0400)
commit05b3588830bf0665f9e952a92b75f774b4af8217
tree43ed8f0c8ce207ae024cd0e4e70f6e9bd7ab09b5
parentda2fe19f1b0a9a3ca03001c6c741605a9586f352
drm/amd/display: Test GFX9/GFX10 plane modifiers

[WHAT]
Add KUnit tests for amdgpu_dm_plane_get_plane_modifiers() on GFX9,
Raven, Raven constant-encode, GFX10.1 and GFX10.3 devices.

Introduce the dm_test_expect_mods_terminated(), dm_test_mods_contain()
and dm_test_get_primary_mods() helpers used to validate the generated
modifier lists.

Assisted-by: Copilot:Claude-Opus-4.8 GPT-5.5
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_plane_test.c