From 92a43caab96e7f49c541fb999b75925914d9981a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 28 Aug 2013 14:51:09 +0100 Subject: sna/gen6+: Don't force a ring switch for likely TLB misses if already busy If the target is already on the render ring, don't force the switch away. Signed-off-by: Chris Wilson --- src/sna/gen6_render.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sna/gen6_render.c') diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index e63a0cf2..1db6c958 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1891,6 +1891,9 @@ inline static bool can_switch_to_blt(struct sna *sna, static inline bool untiled_tlb_miss(struct kgem_bo *bo) { + if (kgem_bo_is_render(bo)) + return false; + return bo->tiling == I915_TILING_NONE && bo->pitch >= 4096; } -- cgit v1.2.3