diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-11 15:50:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-11 15:54:18 +0100 |
commit | e1b7e8bf1d475b3d00adcb96e6002c20c9e70d1c (patch) | |
tree | a1a55cc49600a420e70b9d16fcfcdb716dca6f2a | |
parent | dfbaf9aab80cf33d47148f087fa747eacd508b05 (diff) |
drmmode: Reorder i830_set_pixmap_bo() so that the correct stride is used.
The pitch needs to be set on the pixmap prior to the private
intel_pixmap structure being created so that it can record the correct
value from the pixmap.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/drmmode_display.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index cd0787e4..d4cf3677 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1290,10 +1290,8 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height) goto fail; pixmap = screen->GetScreenPixmap(screen); - i830_set_pixmap_bo(pixmap, intel->front_buffer); - assert (i830_get_pixmap_intel(pixmap)->stride == pitch); - screen->ModifyPixmapHeader(pixmap, width, height, -1, -1, pitch, NULL); + i830_set_pixmap_bo(pixmap, intel->front_buffer); for (i = 0; i < xf86_config->num_crtc; i++) { xf86CrtcPtr crtc = xf86_config->crtc[i]; |