diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-05-13 22:53:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-05-13 22:53:26 +0100 |
commit | 1486cfdf04b070787074493a30cd698455b016fe (patch) | |
tree | 716eac763faf657d5381395df8905fa877d1f23d /src | |
parent | 512284fd47bc225236e403920647703ea4842666 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/gen6_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen6_common.h b/src/sna/gen6_common.h index 83adc7d7..b53ec0c9 100644 --- a/src/sna/gen6_common.h +++ b/src/sna/gen6_common.h @@ -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; |