sna: Force GTT fallback if we cannot BLT or RENDER download

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-04-16 14:29:53 +01:00
parent 5df16db52e
commit 57252b63f9
1 changed files with 5 additions and 0 deletions

View File

@ -281,6 +281,9 @@ fallback:
if (box[n].y2 > extents.y2)
extents.y2 = box[n].y2;
}
if (!can_blt && sna->render.max_3d_size == 0)
goto fallback;
if (kgem_bo_can_map(kgem, src_bo)) {
/* Is it worth detiling? */
if ((extents.y2 - extents.y1 - 1) * src_bo->pitch < 4096)
@ -849,6 +852,8 @@ bool sna_write_boxes(struct sna *sna, PixmapPtr dst,
if (box[n].y2 > extents.y2)
extents.y2 = box[n].y2;
}
if (!can_blt && sna->render.max_3d_size == 0)
goto fallback;
/* Try to avoid switching rings... */
if (!can_blt || kgem->ring == KGEM_RENDER ||