summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-07-10 14:01:02 -0700
committerKeith Packard <keithp@keithp.com>2009-07-10 18:26:59 -0700
commitcb19ac207b784d814f6f389110fd1b21a0f34e8b (patch)
treef6f0757cfbe6bec3ae854f0d698473f2a4a9b2aa /src
parent704b88dd50a7e7e3f362264b86d0401bee8603aa (diff)
KMS: Keep screen pixmap devPrivate.ptr NULL during init and resize
The frame buffer only has a valid address between prepare_access and finish_access calls, so remove all other attempts to compute an address from the driver. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/drmmode_display.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 7cfdc5bb..df10fb50 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1056,12 +1056,9 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height)
goto fail;
i830_set_pixmap_bo(screen->GetScreenPixmap(screen), pI830->front_buffer->bo);
- scrn->fbOffset = pI830->front_buffer->offset;
screen->ModifyPixmapHeader(screen->GetScreenPixmap(screen),
width, height, -1, -1, pitch * pI830->cpp, NULL);
- xf86DrvMsg(scrn->scrnIndex, X_INFO, "New front buffer at 0x%lx\n",
- pI830->front_buffer->offset);
for (i = 0; i < xf86_config->num_crtc; i++) {
xf86CrtcPtr crtc = xf86_config->crtc[i];