sna: Use local defines for compilation on older distributions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c6dd23ce11
commit
6ba3bd9dfd
|
|
@ -2844,7 +2844,7 @@ bool __kgem_ring_is_idle(struct kgem *kgem, int ring)
|
|||
void __kgem_retire_requests_upto(struct kgem *kgem, struct kgem_bo *bo)
|
||||
{
|
||||
struct kgem_request *rq = bo->rq, *tmp;
|
||||
struct list *requests = &kgem->requests[RQ_RING(rq) == I915_EXEC_BLT];
|
||||
struct list *requests = &kgem->requests[RQ_RING(rq) == KGEM_BLT];
|
||||
|
||||
DBG(("%s(handle=%d)\n", __FUNCTION__, bo->handle));
|
||||
assert(!__kgem_busy(kgem, bo->handle));
|
||||
|
|
|
|||
|
|
@ -652,7 +652,7 @@ 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_BLT;
|
||||
return bo->rq && RQ_RING(bo->rq) != KGEM_BLT;
|
||||
}
|
||||
|
||||
static inline bool kgem_bo_is_blt(struct kgem_bo *bo)
|
||||
|
|
@ -660,7 +660,7 @@ 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;
|
||||
return RQ_RING(bo->rq) == KGEM_BLT;
|
||||
}
|
||||
|
||||
static inline void kgem_bo_mark_unreusable(struct kgem_bo *bo)
|
||||
|
|
|
|||
Loading…
Reference in New Issue