[igt-dev] [PATCH i-g-t] tests/kms_hdr: Fix bpc-switch tests on AMD hardware

Jeremy Cline jcline at redhat.com
Fri Feb 19 17:27:38 UTC 2021


Kernel commit b836a274b797 ("drm/amdgpu/dc: Require primary plane to be
enabled whenever the CRTC is") causes the bpc-switch tests to fail,
since the primary plane fb is being removed, which leads to the next
atomic commit failing with -EINVAL.

This stops the removal of the primary plane fb before switching to 10
bits per component and the test now runs successfully.

Signed-off-by: Jeremy Cline <jcline at redhat.com>
---
 tests/kms_hdr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c
index e9dd7f27..70a4b456 100644
--- a/tests/kms_hdr.c
+++ b/tests/kms_hdr.c
@@ -223,8 +223,6 @@ static void test_bpc_switch_on_output(data_t *data, igt_output_t *output,
 			data->h = afb.height;
 		}
 
-		igt_plane_set_fb(data->primary, NULL);
-
 		/*
 		 * i915 driver doesn't expose max bpc as debugfs entry,
 		 * so limiting assert only for amd driver.
-- 
2.30.1



More information about the igt-dev mailing list