diff options
author | Keith Packard <keithp@keithp.com> | 2008-12-09 21:51:14 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-12-09 21:51:14 -0800 |
commit | d8b764fbd27dc9c8b28386093931b8d38855bd19 (patch) | |
tree | 44f1ba34e0044f8c89b64ddb2df4bd99ed38a2af /src/i830_display.c | |
parent | 4d7a95959d8223aec41550eb19f60b3edd7210a1 (diff) |
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@keithp.com>
Diffstat (limited to 'src/i830_display.c')
-rw-r--r-- | src/i830_display.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/i830_display.c b/src/i830_display.c index 26266127..2e5d55a0 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 |