[igt-dev] [PATCH i-g-t 4/4] tests/i915/kms_psr2_sf: Fix setting wrong fb size

Jouni Högander jouni.hogander at intel.com
Mon May 30 06:07:01 UTC 2022


Current code is improperly setting over framebuffer size. Fix this
by setting primary framebuffer size instead.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 tests/i915/kms_psr2_sf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/kms_psr2_sf.c b/tests/i915/kms_psr2_sf.c
index 47a431b6..6612587c 100644
--- a/tests/i915/kms_psr2_sf.c
+++ b/tests/i915/kms_psr2_sf.c
@@ -367,7 +367,7 @@ static void prepare(data_t *data)
 
 	igt_plane_set_fb(primary, &data->fb_primary);
 	igt_fb_set_position(&data->fb_primary, primary, x, y);
-	igt_fb_set_size(&data->fb_overlay, primary, view_w,
+	igt_fb_set_size(&data->fb_primary, primary, view_w,
 			view_h);
 	igt_plane_set_size(primary, view_w, view_h);
 	igt_plane_set_position(primary, 0, 0);
-- 
2.25.1



More information about the igt-dev mailing list