xf86-video-intel: src/i830_display.c

Keith Packard keithp at kemper.freedesktop.org
Tue Dec 9 21:52:16 PST 2008


 src/i830_display.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit d8b764fbd27dc9c8b28386093931b8d38855bd19
Author: Keith Packard <keithp at keithp.com>
Date:   Tue Dec 9 21:51:14 2008 -0800

    Add RandR 1.3 panning support by supporting the crtc set_origin function
    
    RandR 1.3 panning support can use the regular mode setting interface, but
    that's really slow. Providing set_origin makes it nice and snappy.
    
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/src/i830_display.c b/src/i830_display.c
index 2626612..2e5d55a 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -1638,6 +1638,13 @@ i830_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data)
     }
 }
 
+#if RANDR_13_INTERFACE
+static void
+i830_crtc_set_origin(xf86CrtcPtr crtc, int x, int y)
+{
+    i830PipeSetBase(crtc, x, y);
+}
+#endif
 
 void
 i830DescribeOutputConfiguration(ScrnInfoPtr pScrn)
@@ -1959,6 +1966,9 @@ static const xf86CrtcFuncsRec i830_crtc_funcs = {
 /*    .load_cursor_image = i830_crtc_load_cursor_image, */
     .load_cursor_argb = i830_crtc_load_cursor_argb,
     .destroy = NULL, /* XXX */
+#if RANDR_13_INTERFACE
+    .set_origin = i830_crtc_set_origin,
+#endif
 };
 
 void


More information about the xorg-commit mailing list