sna/gen3: Prevent copy-fallback if we cannot blit
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
28c089781f
commit
342dda3fe3
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue