diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-18 10:55:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-18 15:11:31 +0000 |
commit | 342dda3fe361c8be2f3af5af1516cdc6a5fdcaa9 (patch) | |
tree | dd9c644f12b07d7c831021e90d11b10817d5e802 /src/sna/gen3_render.c | |
parent | 28c089781fdf74a9bac2e138e65383748558fcc1 (diff) |
sna/gen3: Prevent copy-fallback if we cannot blit
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen3_render.c')
-rw-r--r-- | src/sna/gen3_render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index 67c8956a..8c88722d 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -3987,6 +3987,10 @@ gen3_render_copy_boxes(struct sna *sna, uint8_t alu, src_bo->pitch > MAX_3D_PITCH || too_large(src->drawable.width, src->drawable.height)) { fallback_blt: + if (!kgem_bo_can_blt(&sna->kgem, src_bo) || + !kgem_bo_can_blt(&sna->kgem, dst_bo)) + return FALSE; + return sna_blt_copy_boxes_fallback(sna, alu, src, src_bo, src_dx, src_dy, dst, dst_bo, dst_dx, dst_dy, |