drm/i915: Refactor scratch object allocation for gen2 w/a buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:20 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 20:00:50 +0000 (21:00 +0100)
commit7d5ea80720a8e53ff4ea309708cef2a7a0e163c7
tree007714b40522f4ac2ebe5f82904eaae4e165b028
parentde8fe1663a5e1e6d83b21caf000f462483a8a559
drm/i915: Refactor scratch object allocation for gen2 w/a buffer

The gen2 w/a buffer is stuffed into the same slot as the gen5+ scratch
buffer. If we pass in the size we want to allocate for the scratch
buffer, both callers can use the same routine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-11-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h