diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-08 18:06:40 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-10 18:26:58 -0700 |
commit | d655a3ff423e69c19a5dc07140cbf3caaa32cb86 (patch) | |
tree | 94cc299ade3915048399c2fbc1dc05fe3210fdac /src/drmmode_display.c | |
parent | 4e4b947f0b13f4a62606ccfd5729d5eb26ca0e92 (diff) |
Remove NoAccel support
This removes yet another 'debugging' option that hasn't seen real use in a
long time, and wasn't supported under KMS in any case.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index e9296dce..7cfdc5bb 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -329,8 +329,6 @@ drmmode_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height) return NULL; } - drm_intel_gem_bo_map_gtt(drmmode_crtc->rotate_bo); - ret = drmModeAddFB(drmmode->fd, width, height, crtc->scrn->depth, crtc->scrn->bitsPerPixel, rotate_pitch, drmmode_crtc->rotate_bo->handle, @@ -341,7 +339,7 @@ drmmode_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height) return NULL; } - return drmmode_crtc->rotate_bo->virtual; + return drmmode_crtc->rotate_bo; } static PixmapPtr @@ -353,8 +351,14 @@ drmmode_crtc_shadow_create(xf86CrtcPtr crtc, void *data, int width, int height) unsigned long rotate_pitch; PixmapPtr rotate_pixmap; - if (!data) + if (!data) { data = drmmode_crtc_shadow_allocate (crtc, width, height); + if (!data) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, + "Couldn't allocate shadow pixmap for rotated CRTC\n"); + return NULL; + } + } rotate_pitch = i830_pad_drawable_width(width, drmmode->cpp) * drmmode->cpp; @@ -363,11 +367,12 @@ drmmode_crtc_shadow_create(xf86CrtcPtr crtc, void *data, int width, int height) pScrn->depth, pScrn->bitsPerPixel, rotate_pitch, - data); + NULL); if (rotate_pixmap == NULL) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Couldn't allocate shadow pixmap for rotated CRTC\n"); + return NULL; } if (drmmode_crtc->rotate_bo) @@ -393,7 +398,6 @@ drmmode_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *dat * unbound. */ drmModeRmFB(drmmode->fd, drmmode_crtc->rotate_fb_id); drmmode_crtc->rotate_fb_id = 0; - drm_intel_gem_bo_unmap_gtt(drmmode_crtc->rotate_bo); dri_bo_unreference(drmmode_crtc->rotate_bo); drmmode_crtc->rotate_bo = NULL; } |