[igt-dev] [i-g-t] tests/intel/kms_psr: Use blitter if rendercopy isn't present

Bhanuprakash Modem bhanuprakash.modem at intel.com
Tue Nov 21 08:20:47 UTC 2023


As Rendercopy support in IGT is not present for few latest
platforms. So, fallback to use Blitter if Rendercopy isn't
present.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/intel/kms_psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/kms_psr.c b/tests/intel/kms_psr.c
index 6b80f6f4b..afd74eaff 100644
--- a/tests/intel/kms_psr.c
+++ b/tests/intel/kms_psr.c
@@ -957,7 +957,7 @@ igt_main
 				igt_display_reset(&data.display);
 				data.output = output;
 				igt_dynamic_f("%s", data.output->name) {
-					data.op = RENDER;
+					data.op = igt_get_render_copyfunc(data.devid) ? RENDER : BLT;
 					data.test_plane_id = DRM_PLANE_TYPE_PRIMARY;
 					test_setup(&data);
 					dpms_off_on(&data);
-- 
2.40.0



More information about the igt-dev mailing list