diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-19 16:56:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-19 20:31:04 +0000 |
commit | 1f0e785a9cc09b430d0fbe4e9ac438d43c245815 (patch) | |
tree | 71d39a37df17c4245e64c570fbb3822874f8a4b0 /drivers/gpu/drm/i915/i915_request.h | |
parent | 14cb9a7763622460a904c50b8adbf69a83d6cab5 (diff) | |
download | linux-1f0e785a9cc09b430d0fbe4e9ac438d43c245815.tar.gz linux-1f0e785a9cc09b430d0fbe4e9ac438d43c245815.tar.bz2 linux-1f0e785a9cc09b430d0fbe4e9ac438d43c245815.zip |
drm/i915: Lift i915_request_show()
Extract i915_request_show for reuse in other request chain pretty
printers.
For a bonus point, quietly change the seqno format from %llx to %lld to
match everywhere else.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201119165616.10834-2-chris@chris-wilson.co.uk
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 16b721080195..09609071b725 100644 --- a/drivers/gpu/drm/i915/i915_request.h +++ b/drivers/gpu/drm/i915/i915_request.h @@ -43,6 +43,7 @@ struct drm_file; struct drm_i915_gem_object; +struct drm_printer; struct i915_request; struct i915_capture_list { @@ -369,6 +370,10 @@ long i915_request_wait(struct i915_request *rq, #define I915_WAIT_PRIORITY BIT(1) /* small priority bump for the request */ #define I915_WAIT_ALL BIT(2) /* used by i915_gem_object_wait() */ +void i915_request_show(struct drm_printer *m, + const struct i915_request *rq, + const char *prefix); + static inline bool i915_request_signaled(const struct i915_request *rq) { /* The request may live longer than its HWSP, so check flags first! */ |