[Intel-gfx] [PATCH] Set screen pixmap bo in EXA case too

Jesse Barnes jbarnes at virtuousgeek.org
Mon Apr 6 21:44:37 CEST 2009


Even in the EXA case the screen will have a buffer object associated
with it (which has tiling parameters etc).  If we associate it with the
screen pixmap we can use the bo data in various places, like video
playback, to handle tiling and offset, rather than using the legacy
fields.

Comments?  Seems to work here to fix #21027, but I've only tested on
965 so far...

-- 
Jesse Barnes, Intel Open Source Technology Center

diff --git a/src/i830_driver.c b/src/i830_driver.c
index 32ca6c9..2134056 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -852,6 +852,7 @@ i830_update_front_offset(ScrnInfoPtr pScrn)
 	      drm_intel_gem_bo_start_gtt_access(bo, 1);
 	      data = pI830->FbBase + bo->offset;
 	  }
+	  i830_set_pixmap_bo(pScreen->GetScreenPixmap(pScreen), bo);
       }
    }
    if (!pScreen->ModifyPixmapHeader(pScreen->GetScreenPixmap(pScreen),



More information about the Intel-gfx mailing list