diff options
author | Dave Gordon <david.s.gordon@intel.com> | 2015-08-06 16:50:46 +0100 |
---|---|---|
committer | John Harrison <John.C.Harrison@Intel.com> | 2016-06-28 17:19:10 +0100 |
commit | 695290f64d9b46778a79b366d6ad80830288d80e (patch) | |
tree | 1aa0431dc2352fac74e2087d5899aa9a6ed9aac8 /drivers/gpu/drm | |
parent | d064805d94f63813a94de9add0684f638df420fc (diff) |
drm/i915: update ring space correctly
For: VIZ-2021
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lrc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index cf76f18f4cec..3a4d3d427254 100644 --- a/drivers/gpu/drm/i915/intel_lrc.c +++ b/drivers/gpu/drm/i915/intel_lrc.c @@ -782,7 +782,7 @@ static int logical_ring_wait_for_space(struct drm_i915_gem_request *req, if (ret) return ret; - ringbuf->space = space; + intel_ring_update_space(ringbuf); return 0; } diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 427000f144c8..317019cf86d6 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -2354,7 +2354,7 @@ static int ring_wait_for_space(struct intel_engine_cs *engine, int n) if (ret) return ret; - ringbuf->space = space; + intel_ring_update_space(ringbuf); return 0; } |