diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2011-10-11 17:41:09 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-20 18:26:40 -0400 |
commit | 9d971b37534fb268251f74cc04a36a0a16f7da04 (patch) | |
tree | d36515e0f4d217addbef4faf949f67363ee5e2f0 /drivers | |
parent | fcbc34e4dc9ed43f5b147e95beec56c987c683c5 (diff) |
drm/i915: Rename PIPE_CONTROL bit defines to be less terse.
"STALL_AT_SCOREBOARD" is much clearer than "STALL_EN" now that there are
several different kinds of stalls. Also, "INSTRUCTION_CACHE_INVALIDATE"
is a lot easier to understand at a glance than the terse "IS_FLUSH."
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
[danvet: use INVALIDATE for ro cache flags for more consistency]
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 16 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 6 |
2 files changed, 12 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 1b07547e26ce..d675d79efd48 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -243,15 +243,15 @@ | |||
243 | #define DISPLAY_PLANE_A (0<<20) | 243 | #define DISPLAY_PLANE_A (0<<20) |
244 | #define DISPLAY_PLANE_B (1<<20) | 244 | #define DISPLAY_PLANE_B (1<<20) |
245 | #define GFX_OP_PIPE_CONTROL(len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|(len-2)) | 245 | #define GFX_OP_PIPE_CONTROL(len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|(len-2)) |
246 | #define PIPE_CONTROL_QW_WRITE (1<<14) | 246 | #define PIPE_CONTROL_QW_WRITE (1<<14) |
247 | #define PIPE_CONTROL_DEPTH_STALL (1<<13) | 247 | #define PIPE_CONTROL_DEPTH_STALL (1<<13) |
248 | #define PIPE_CONTROL_WC_FLUSH (1<<12) | 248 | #define PIPE_CONTROL_WRITE_FLUSH (1<<12) |
249 | #define PIPE_CONTROL_IS_FLUSH (1<<11) /* MBZ on Ironlake */ | 249 | #define PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE (1<<11) /* MBZ on Ironlake */ |
250 | #define PIPE_CONTROL_TC_FLUSH (1<<10) /* GM45+ only */ | 250 | #define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1<<10) /* GM45+ only */ |
251 | #define PIPE_CONTROL_ISP_DIS (1<<9) | 251 | #define PIPE_CONTROL_INDIRECT_STATE_DISABLE (1<<9) |
252 | #define PIPE_CONTROL_NOTIFY (1<<8) | 252 | #define PIPE_CONTROL_NOTIFY (1<<8) |
253 | #define PIPE_CONTROL_STALL_AT_SCOREBOARD (1<<1) | ||
253 | #define PIPE_CONTROL_GLOBAL_GTT (1<<2) /* in addr dword */ | 254 | #define PIPE_CONTROL_GLOBAL_GTT (1<<2) /* in addr dword */ |
254 | #define PIPE_CONTROL_STALL_EN (1<<1) /* in addr word, Ironlake+ only */ | ||
255 | 255 | ||
256 | 256 | ||
257 | /* | 257 | /* |
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 7f188c9caf0d..ca8363531a64 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -468,7 +468,8 @@ pc_render_add_request(struct intel_ring_buffer *ring, | |||
468 | return ret; | 468 | return ret; |
469 | 469 | ||
470 | intel_ring_emit(ring, GFX_OP_PIPE_CONTROL(4) | PIPE_CONTROL_QW_WRITE | | 470 | intel_ring_emit(ring, GFX_OP_PIPE_CONTROL(4) | PIPE_CONTROL_QW_WRITE | |
471 | PIPE_CONTROL_WC_FLUSH | PIPE_CONTROL_TC_FLUSH); | 471 | PIPE_CONTROL_WRITE_FLUSH | |
472 | PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE); | ||
472 | intel_ring_emit(ring, pc->gtt_offset | PIPE_CONTROL_GLOBAL_GTT); | 473 | intel_ring_emit(ring, pc->gtt_offset | PIPE_CONTROL_GLOBAL_GTT); |
473 | intel_ring_emit(ring, seqno); | 474 | intel_ring_emit(ring, seqno); |
474 | intel_ring_emit(ring, 0); | 475 | intel_ring_emit(ring, 0); |
@@ -484,7 +485,8 @@ pc_render_add_request(struct intel_ring_buffer *ring, | |||
484 | scratch_addr += 128; | 485 | scratch_addr += 128; |
485 | PIPE_CONTROL_FLUSH(ring, scratch_addr); | 486 | PIPE_CONTROL_FLUSH(ring, scratch_addr); |
486 | intel_ring_emit(ring, GFX_OP_PIPE_CONTROL(4) | PIPE_CONTROL_QW_WRITE | | 487 | intel_ring_emit(ring, GFX_OP_PIPE_CONTROL(4) | PIPE_CONTROL_QW_WRITE | |
487 | PIPE_CONTROL_WC_FLUSH | PIPE_CONTROL_TC_FLUSH | | 488 | PIPE_CONTROL_WRITE_FLUSH | |
489 | PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | | ||
488 | PIPE_CONTROL_NOTIFY); | 490 | PIPE_CONTROL_NOTIFY); |
489 | intel_ring_emit(ring, pc->gtt_offset | PIPE_CONTROL_GLOBAL_GTT); | 491 | intel_ring_emit(ring, pc->gtt_offset | PIPE_CONTROL_GLOBAL_GTT); |
490 | intel_ring_emit(ring, seqno); | 492 | intel_ring_emit(ring, seqno); |