[Intel-gfx] [PATCH] Don't do AdjustFrame in KMS mode.
Eric Anholt
eric at anholt.net
Sun Feb 22 05:37:15 CET 2009
This was hit by xv86vm's SwitchMode path, and for that the CRTC offsets
get set at mode setting time anyway.
---
src/i830_driver.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 0a8a9c6..2461e8a 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3488,6 +3488,9 @@ i830AdjustFrame(int scrnIndex, int x, int y, int flags)
DPRINTF(PFX, "i830AdjustFrame: y = %d (+ %d), x = %d (+ %d)\n",
x, pI830->xoffset, y, pI830->yoffset);
+ if (pI830->use_drm_mode)
+ return;
+
if (crtc && crtc->enabled)
{
/* Sync the engine before adjust frame */
--
1.5.6.5
More information about the Intel-gfx
mailing list