diff options
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 63bba4cb..49f0eecf 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -645,6 +645,14 @@ static inline bool __kgem_bo_is_busy(struct kgem *kgem, struct kgem_bo *bo) return kgem_bo_is_busy(bo); } +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, RQ_RING(bo->rq))); + assert(bo->refcnt); + return bo->rq && RQ_RING(bo->rq) == I915_EXEC_RENDER; +} + static inline void kgem_bo_mark_unreusable(struct kgem_bo *bo) { while (bo->proxy) { |