sna/gen6+: Don't force a switch to BLT if the target bo cannot be blitted

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-05-13 22:53:26 +01:00
parent 512284fd47
commit 1486cfdf04
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ inline static bool can_switch_to_blt(struct sna *sna,
if (bo && bo->tiling == I915_TILING_Y)
return false;
if (bo && !kgem_bo_can_blt(&sna->kgem, bo))
return false;
if (sna->render_state.gt < 2)
return true;