diff options
author | John Harrison <John.C.Harrison@Intel.com> | 2015-05-29 17:44:07 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-23 14:02:29 +0200 |
commit | 5fb9de1a2ea1968b57c906c6770794f1e7744828 (patch) | |
tree | 378728ad7bce8217c51b4606dcf58a1839c1e34b /drivers/gpu/drm/i915/i915_gem_context.c | |
parent | bba09b12b47b31b147206f5784691d2fb8888bf1 (diff) | |
download | op-kernel-dev-5fb9de1a2ea1968b57c906c6770794f1e7744828.zip op-kernel-dev-5fb9de1a2ea1968b57c906c6770794f1e7744828.tar.gz |
drm/i915: Update intel_ring_begin() to take a request structure
Now that everything above has been converted to use requests, intel_ring_begin()
can be updated to take a request instead of a ring. This also means that it no
longer needs to lazily allocate a request if no-one happens to have done it
earlier.
For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index c80b59d..a7e58a8 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -509,7 +509,7 @@ mi_set_context(struct drm_i915_gem_request *req, u32 hw_flags) if (INTEL_INFO(ring->dev)->gen >= 7) len += 2 + (num_rings ? 4*num_rings + 2 : 0); - ret = intel_ring_begin(ring, len); + ret = intel_ring_begin(req, len); if (ret) return ret; |