diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.h b/drivers/gpu/drm/i915/i915_request.h index d014b0605445..c0f084ca4f29 100644 --- a/drivers/gpu/drm/i915/i915_request.h +++ b/drivers/gpu/drm/i915/i915_request.h | |||
@@ -280,6 +280,11 @@ long i915_request_wait(struct i915_request *rq, | |||
280 | #define I915_WAIT_ALL BIT(3) /* used by i915_gem_object_wait() */ | 280 | #define I915_WAIT_ALL BIT(3) /* used by i915_gem_object_wait() */ |
281 | #define I915_WAIT_FOR_IDLE_BOOST BIT(4) | 281 | #define I915_WAIT_FOR_IDLE_BOOST BIT(4) |
282 | 282 | ||
283 | static inline bool i915_request_signaled(const struct i915_request *rq) | ||
284 | { | ||
285 | return test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &rq->fence.flags); | ||
286 | } | ||
287 | |||
283 | static inline bool intel_engine_has_started(struct intel_engine_cs *engine, | 288 | static inline bool intel_engine_has_started(struct intel_engine_cs *engine, |
284 | u32 seqno); | 289 | u32 seqno); |
285 | static inline bool intel_engine_has_completed(struct intel_engine_cs *engine, | 290 | static inline bool intel_engine_has_completed(struct intel_engine_cs *engine, |