From 6c8d98436a207d179a6b3735928d03742cd3bf3a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 25 Jan 2015 13:28:00 +0000 Subject: sna/gen6+: Tweak engine placement when considering src/dst combinations Signed-off-by: Chris Wilson --- src/sna/kgem.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/sna/kgem.h') diff --git a/src/sna/kgem.h b/src/sna/kgem.h index ae53e67b..873852d6 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -652,7 +652,15 @@ static inline bool kgem_bo_is_render(struct kgem_bo *bo) DBG(("%s: handle=%d, rq? %d [%d]\n", __FUNCTION__, bo->handle, bo->rq != NULL, (int)RQ_RING(bo->rq))); assert(bo->refcnt); - return bo->rq && RQ_RING(bo->rq) == I915_EXEC_RENDER; + return bo->rq && RQ_RING(bo->rq) != I915_EXEC_BLT; +} + +static inline bool kgem_bo_is_blt(struct kgem_bo *bo) +{ + DBG(("%s: handle=%d, rq? %d\n", __FUNCTION__, + bo->handle, bo->rq != NULL, (int)RQ_RING(bo->rq))); + assert(bo->refcnt); + return RQ_RING(bo->rq) == I915_EXEC_BLT; } static inline void kgem_bo_mark_unreusable(struct kgem_bo *bo) -- cgit v1.2.1