diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-17 17:26:30 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-18 04:35:17 -0400 |
commit | 4e0d64dba816adf18c17488d38ede67a3d0e9b40 (patch) | |
tree | 76243fca2f9e23ab2f127f6d5aa1fc636c83f0b5 /drivers/gpu/drm/i915/i915_request.h | |
parent | c8af5274c3cbacb0905a26bcdef85901216e1134 (diff) |
drm/i915: Move request->ctx aside
In the next patch, we want to store the intel_context pointer inside
i915_request, as it is frequently access via a convoluted dance when
submitting the request to hw. Having two context pointers inside
i915_request leads to confusion so first rename the existing
i915_gem_context pointer to i915_request.gem_context.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517212633.24934-1-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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.h b/drivers/gpu/drm/i915/i915_request.h index eddbd4245cb3..dddecd9ffd0c 100644 --- a/drivers/gpu/drm/i915/i915_request.h +++ b/drivers/gpu/drm/i915/i915_request.h | |||
@@ -93,7 +93,7 @@ struct i915_request { | |||
93 | * i915_request_free() will then decrement the refcount on the | 93 | * i915_request_free() will then decrement the refcount on the |
94 | * context. | 94 | * context. |
95 | */ | 95 | */ |
96 | struct i915_gem_context *ctx; | 96 | struct i915_gem_context *gem_context; |
97 | struct intel_engine_cs *engine; | 97 | struct intel_engine_cs *engine; |
98 | struct intel_ring *ring; | 98 | struct intel_ring *ring; |
99 | struct i915_timeline *timeline; | 99 | struct i915_timeline *timeline; |