diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2011-12-12 22:21:58 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-03 12:09:44 -0500 |
commit | 84f9f938be4156e4baea466688bd6abae1c9e6ba (patch) | |
tree | 7d722807e6f9c86db1eb74ae6b2931a3e54140e0 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | e2971bdab2b761683353da383c0fd5ac704d1cca (diff) |
drm/i915: Force sync command ordering (Gen6+)
The docs say this is required for Gen7, and since the bit was added for
Gen6, we are also setting it there pit pf paranoia. Particularly as
Chris points out, if PIPE_CONTROL counts as a 3d state packet.
This was found through doc inspection by Ken and applies to Gen6+;
Reported-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index ca70e2f10445..f5dae5deca71 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -414,6 +414,11 @@ static int init_render_ring(struct intel_ring_buffer *ring) | |||
414 | return ret; | 414 | return ret; |
415 | } | 415 | } |
416 | 416 | ||
417 | if (INTEL_INFO(dev)->gen >= 6) { | ||
418 | I915_WRITE(INSTPM, | ||
419 | INSTPM_FORCE_ORDERING << 16 | INSTPM_FORCE_ORDERING); | ||
420 | } | ||
421 | |||
417 | return ret; | 422 | return ret; |
418 | } | 423 | } |
419 | 424 | ||