diff options
author | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-07-20 13:30:02 +0200 |
---|---|---|
committer | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-07-24 17:24:35 +0200 |
commit | d3f23ab93a1ecb70e8483aa40e997a2142addc86 (patch) | |
tree | 0a2d30a0ae64de8d9a36bce5d5be3a2853e3f69e /drivers/gpu/drm/i915/gem | |
parent | drm/i915/huc: check HuC and GuC version compatibility on MTL (diff) | |
download | linux-d3f23ab93a1ecb70e8483aa40e997a2142addc86.tar.xz linux-d3f23ab93a1ecb70e8483aa40e997a2142addc86.zip |
drm/i915: use direct alias for i915 in requests
i915_request contains direct alias to i915, there is no point to go via
rq->engine->i915.
v2: added missing rq.i915 initialization in measure_breadcrumb_dw.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230720113002.1541572-1-andrzej.hajda@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gem')
-rw-r--r-- | drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c index 1de9de1e4782..d16af595c199 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c @@ -2230,8 +2230,8 @@ static int i915_reset_gen7_sol_offsets(struct i915_request *rq) u32 *cs; int i; - if (GRAPHICS_VER(rq->engine->i915) != 7 || rq->engine->id != RCS0) { - drm_dbg(&rq->engine->i915->drm, "sol reset is gen7/rcs only\n"); + if (GRAPHICS_VER(rq->i915) != 7 || rq->engine->id != RCS0) { + drm_dbg(&rq->i915->drm, "sol reset is gen7/rcs only\n"); return -EINVAL; } |