diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-25 13:28:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-25 14:09:07 +0000 |
commit | 6c8d98436a207d179a6b3735928d03742cd3bf3a (patch) | |
tree | 35c983bbc47505577b82282249fb0426c6868c11 /src/sna/kgem.h | |
parent | ed19b160089640c2e1167332b00ffe1e569a48dc (diff) | |
download | xorg-driver-xf86-video-intel-6c8d98436a207d179a6b3735928d03742cd3bf3a.tar.gz |
sna/gen6+: Tweak engine placement when considering src/dst combinations
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 10 |
1 files changed, 9 insertions, 1 deletions
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) |