aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-12-28 12:16:36 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2018-12-31 10:35:45 -0500
commited2922c025c3fd208e0fe7589f587ba37e1a4834 (patch)
treede4024f52d0dc38dbe3f413b74549087c10192db /drivers/gpu/drm/i915/intel_ringbuffer.c
parent6bf198172beb0b8225fe9cdc0f9c9ac9f4cf5c76 (diff)
drm/i915: Remove redundant trailing request flush
Now that we perform the request flushing inline with emitting the breadcrumb, we can remove the now redundant manual flush. And we can also remove the infrastructure that remained only for its purpose. v2: emit_breadcrumb_sz is in dwords, but rq->reserved_space is in bytes Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181228171641.16531-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index fc1e29305951..d773f7dd32a9 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1904,22 +1904,6 @@ static noinline int wait_for_space(struct intel_ring *ring, unsigned int bytes)
1904 return 0; 1904 return 0;
1905} 1905}
1906 1906
1907int intel_ring_wait_for_space(struct intel_ring *ring, unsigned int bytes)
1908{
1909 GEM_BUG_ON(bytes > ring->effective_size);
1910 if (unlikely(bytes > ring->effective_size - ring->emit))
1911 bytes += ring->size - ring->emit;
1912
1913 if (unlikely(bytes > ring->space)) {
1914 int ret = wait_for_space(ring, bytes);
1915 if (unlikely(ret))
1916 return ret;
1917 }
1918
1919 GEM_BUG_ON(ring->space < bytes);
1920 return 0;
1921}
1922
1923u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords) 1907u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords)
1924{ 1908{
1925 struct intel_ring *ring = rq->ring; 1909 struct intel_ring *ring = rq->ring;