From 695290f64d9b46778a79b366d6ad80830288d80e Mon Sep 17 00:00:00 2001 From: Dave Gordon Date: Thu, 6 Aug 2015 16:50:46 +0100 Subject: drm/i915: update ring space correctly For: VIZ-2021 Signed-off-by: Dave Gordon --- drivers/gpu/drm/i915/intel_lrc.c | 2 +- drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/drm') 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; } -- cgit v1.2.3