diff options
author | Keith Packard <keithp@keithp.com> | 2008-12-09 21:51:14 -0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-12-11 09:46:52 +0800 |
commit | dbb84f166b00d288fa81dcf86cab011177690a11 (patch) | |
tree | 5b25bb28d6568cb1f953c9a9be9d3d30a30ee4ee /src | |
parent | e807834863d6d3c3779fc3513e13c6a99f645d96 (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>
(cherry picked from commit d8b764fbd27dc9c8b28386093931b8d38855bd19)
Diffstat (limited to 'src')
-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 |