diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2019-10-10 16:05:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-10-10 18:44:13 +0100 |
commit | 9a61363a6310dda769b8c7601fc9de8ed81e6bc8 (patch) | |
tree | dbc2d5823a2a12e3ee168426ac589e11a15b3484 /drivers/gpu/drm/i915/i915_perf_types.h | |
parent | 3a612765f4233993bf5cff302844bd3b6b5a7429 (diff) | |
download | linux-9a61363a6310dda769b8c7601fc9de8ed81e6bc8.tar.bz2 |
drm/i915/perf: store the associated engine of a stream
We'll use this information later to verify that a client trying to
reconfigure the stream does so on the right engine. For now, we want to
pull the knowledge of which engine we use into a central property.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010150520.26488-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_perf_types.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_perf_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf_types.h b/drivers/gpu/drm/i915/i915_perf_types.h index 2d17059d32ee..82cd3b295037 100644 --- a/drivers/gpu/drm/i915/i915_perf_types.h +++ b/drivers/gpu/drm/i915/i915_perf_types.h @@ -141,6 +141,11 @@ struct i915_perf_stream { intel_wakeref_t wakeref; /** + * @engine: Engine associated with this performance stream. + */ + struct intel_engine_cs *engine; + + /** * @sample_flags: Flags representing the `DRM_I915_PERF_PROP_SAMPLE_*` * properties given when opening a stream, representing the contents * of a single sample as read() by userspace. |