aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-06-04 17:42:49 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-14 11:36:18 -0400
commitcc0f6398225ffd2b890ff83eafe212b1ae863cad (patch)
tree1f05bd6ea2c0dafa81917a020cb23285840baf5a /drivers
parente37ec39b180c53dea3106ceb8f247bcba47dfb82 (diff)
drm/i915: PIPE_CONTROL_TLB_INVALIDATE
This has showed up in several other patches. It's required for the next context workaround. I tested this one on its own and saw no differences in basic tests (performance or otherwise). This patch is relatively likely to cause regressions, hence why it's split out. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h1
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 14cb714df352..60562f0c7018 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -294,6 +294,7 @@
294#define DISPLAY_PLANE_B (1<<20) 294#define DISPLAY_PLANE_B (1<<20)
295#define GFX_OP_PIPE_CONTROL(len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|(len-2)) 295#define GFX_OP_PIPE_CONTROL(len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|(len-2))
296#define PIPE_CONTROL_CS_STALL (1<<20) 296#define PIPE_CONTROL_CS_STALL (1<<20)
297#define PIPE_CONTROL_TLB_INVALIDATE (1<<18)
297#define PIPE_CONTROL_QW_WRITE (1<<14) 298#define PIPE_CONTROL_QW_WRITE (1<<14)
298#define PIPE_CONTROL_DEPTH_STALL (1<<13) 299#define PIPE_CONTROL_DEPTH_STALL (1<<13)
299#define PIPE_CONTROL_WRITE_FLUSH (1<<12) 300#define PIPE_CONTROL_WRITE_FLUSH (1<<12)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 14025ab9d4ca..a041492fdd46 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -226,6 +226,7 @@ gen6_render_ring_flush(struct intel_ring_buffer *ring,
226 * impact. 226 * impact.
227 */ 227 */
228 flags |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH; 228 flags |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;
229 flags |= PIPE_CONTROL_TLB_INVALIDATE;
229 flags |= PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE; 230 flags |= PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE;
230 flags |= PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE; 231 flags |= PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE;
231 flags |= PIPE_CONTROL_DEPTH_CACHE_FLUSH; 232 flags |= PIPE_CONTROL_DEPTH_CACHE_FLUSH;