From 1486cfdf04b070787074493a30cd698455b016fe Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 13 May 2016 22:53:26 +0100 Subject: [PATCH] sna/gen6+: Don't force a switch to BLT if the target bo cannot be blitted Signed-off-by: Chris Wilson --- src/sna/gen6_common.h | 3 +++ 1 file changed, 3 insertions(+) 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;