aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-18 11:02:01 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-21 11:19:51 +0100
commit9220434a8768902cd9cf248709972678b74aa8c1 (patch)
treeebc291c2d703daf601f4b56ebe79c6e8a53d04e5 /drivers/gpu/drm/i915/intel_ringbuffer.h
parentdrm/i915: Inline i915_gem_ring_retire_request() (diff)
downloadlinux-dev-9220434a8768902cd9cf248709972678b74aa8c1.tar.xz
linux-dev-9220434a8768902cd9cf248709972678b74aa8c1.zip
drm/i915: Only emit a flush request on the active ring.
When flushing the GPU domains,we emit a flush on *both* rings, even though they share a unified cache. Only emit the flush on the currently active ring. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index fa5d84f85c26..8dc0e62b7d2a 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -10,6 +10,10 @@ struct intel_hw_status_page {
struct drm_i915_gem_execbuffer2;
struct intel_ring_buffer {
const char *name;
+ enum intel_ring_id {
+ RING_RENDER = 0x1,
+ RING_BSD = 0x2,
+ } id;
struct ring_regs {
u32 ctl;
u32 head;