[PATCH i-g-t] tests/fbdev: Select lower resolution for panning

Nidhi Gupta nidhi1.gupta at intel.com
Wed Jul 26 04:47:55 UTC 2023


Select lower resolution for panning

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/fbdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/fbdev.c b/tests/fbdev.c
index 154e78b0f..7f9634e27 100644
--- a/tests/fbdev.c
+++ b/tests/fbdev.c
@@ -139,9 +139,10 @@ static void mode_tests(int fd)
 		 * Tests that are expected to succeed.
 		 */
 
-		igt_debug("Jump to opposite end of virtual screen\n");
-		pan_var.xoffset = XOFFSET(var_info.xres_virtual - var_info.xres - var_info.xoffset);
-		pan_var.yoffset = YOFFSET(var_info.yres_virtual - var_info.yres - var_info.yoffset);
+		
+		igt_debug("Jump to opposite end of screen\n");
+		pan_var.xoffset = XOFFSET(var_info.xres - var_info.xoffset);
+		pan_var.yoffset = YOFFSET(var_info.yres - var_info.yoffset);
 		pan_test(fd, &pan_var, 0);
 		igt_debug("Jump to (0, 0)\n");
 		pan_var.xoffset = XOFFSET(0);
-- 
2.25.1



More information about the Intel-gfx-trybot mailing list