xlib: Drop the false optimisation of using a potentially busy shm upload pixmap

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-18 09:28:17 +01:00
parent 10ef077324
commit b3448c3dff

View file

@ -249,8 +249,6 @@ draw_image_boxes (void *_dst,
shm = NULL;
if (boxes_cover_surface (boxes, dst))
shm = (cairo_image_surface_t *) _cairo_xlib_surface_get_shm (dst, TRUE);
if (shm == NULL && dst->shm)
shm = (cairo_image_surface_t *) _cairo_xlib_surface_get_shm (dst, FALSE);
if (shm) {
for (chunk = &boxes->chunks; chunk; chunk = chunk->next) {
for (i = 0; i < chunk->count; i++) {