diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-05 19:26:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-15 20:56:58 +0100 |
commit | 0c32be15b06ad63c1fc1371de879f2d879080f6b (patch) | |
tree | a86f39daf524a54d1a54999df98462487d39e3b4 /src/intel_uxa.c | |
parent | 6a18a0936eafc45ab920ab0eecf2fc2a601c41a7 (diff) |
uxa: Remove Shadow hack
This was an incomplete hack so deprecate in favour of Shadow-on-Steriods,
SNA.
References: https://bugs.freedesktop.org/show_bug.cgi?id=47324
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_uxa.c')
-rw-r--r-- | src/intel_uxa.c | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/src/intel_uxa.c b/src/intel_uxa.c index 383efc56..5aad062c 100644 --- a/src/intel_uxa.c +++ b/src/intel_uxa.c @@ -989,12 +989,6 @@ static void intel_throttle(intel_screen_private *intel) void intel_uxa_block_handler(intel_screen_private *intel) { - if (intel->shadow_damage && - pixman_region_not_empty(DamageRegion(intel->shadow_damage))) { - intel_shadow_blt(intel); - DamageEmpty(intel->shadow_damage); - } - /* Emit a flush of the rendering cache, or on the 965 * and beyond rendering results may not hit the * framebuffer until significantly later. @@ -1025,9 +1019,6 @@ intel_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth, if (depth == 1 || intel->force_fallback) return fbCreatePixmap(screen, w, h, depth, usage); - if (intel->use_shadow && (usage & INTEL_CREATE_PIXMAP_DRI2) == 0) - return fbCreatePixmap(screen, w, h, depth, usage); - if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE && w <= 32 && h <= 32) return fbCreatePixmap(screen, w, h, depth, usage); @@ -1147,6 +1138,7 @@ static Bool intel_uxa_destroy_pixmap(PixmapPtr pixmap) Bool intel_uxa_create_screen_resources(ScreenPtr screen) { ScrnInfoPtr scrn = xf86ScreenToScrn(screen); + PixmapPtr pixmap = screen->GetScreenPixmap(screen); intel_screen_private *intel = intel_get_screen_private(scrn); dri_bo *bo = intel->front_buffer; @@ -1155,20 +1147,16 @@ Bool intel_uxa_create_screen_resources(ScreenPtr screen) drm_intel_gem_bo_map_gtt(bo); - if (intel->use_shadow) { - intel_shadow_create(intel); - } else { - PixmapPtr pixmap = screen->GetScreenPixmap(screen); - intel_set_pixmap_bo(pixmap, bo); - intel_get_pixmap_private(pixmap)->pinned = 1; - screen->ModifyPixmapHeader(pixmap, - scrn->virtualX, - scrn->virtualY, - -1, -1, - intel->front_pitch, - NULL); - scrn->displayWidth = intel->front_pitch / intel->cpp; - } + pixmap = screen->GetScreenPixmap(screen); + intel_set_pixmap_bo(pixmap, bo); + intel_get_pixmap_private(pixmap)->pinned = 1; + screen->ModifyPixmapHeader(pixmap, + scrn->virtualX, + scrn->virtualY, + -1, -1, + intel->front_pitch, + NULL); + scrn->displayWidth = intel->front_pitch / intel->cpp; if (!intel_glamor_create_screen_resources(screen)) return FALSE; |