Add REQF_panning
diff --git a/include/test.h b/include/test.h
index aa4d390..4ba58b3 100644
--- a/include/test.h
+++ b/include/test.h
@@ -23,6 +23,8 @@
     /* Screen dimensions */
     REQF_xres = (1<<6),
     REQF_yres = (1<<7),
+    /* Virtual screen and panning */
+    REQF_panning = (1<<8),
 };
 
 enum test_res {
diff --git a/tests.c b/tests.c
index 565c35f..c73c1d6 100644
--- a/tests.c
+++ b/tests.c
@@ -66,6 +66,13 @@
     TEST_REQ_MIN(transp_length, fb_var.transp.length);
     TEST_REQ_MIN(xres, fb_var.xres);
     TEST_REQ_MIN(yres, fb_var.yres);
+    if (test->reqs & REQF_panning) {
+	if (!(fb_fix.xpanstep && fb_var.xres_virtual-fb_var.xres) &&
+	    !(fb_fix.ypanstep && fb_var.yres_virtual-fb_var.yres)) {
+	    Debug("No support for virtual screen and panning\n");
+	    return;
+	}
+    }
 
     res = test->func();
     switch (res) {