summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-09-04 17:02:19 +0300
committerImre Deak <imre.deak@intel.com>2013-09-04 17:02:19 +0300
commit4f496bafea81f24a3ae81179df7abaff648f0654 (patch)
tree2e7f4c6b0cbe63158ede632fed5afad1dd53a238 /lib/intel_batchbuffer.c
parentcaf4608809012766c1db62865b39829cbe2c0c1d (diff)
lib: fix the fix for gen5 workaround emmision
Fix the regression introduced in commit bfbe813f8fb587017c4e1d73c51395c2837eb395 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Tue May 29 22:14:06 2012 +0200 lib: fix gen5 workaround emission Signed-off-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index e356729b..c798c212 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -87,8 +87,9 @@ flush_on_ring_common(struct intel_batchbuffer *batch, int ring)
/* emit gen5 w/a without batch space checks - we reserve that
* already. */
*(uint32_t *) (batch->ptr) = CMD_POLY_STIPPLE_OFFSET << 16;
+ batch->ptr += 4;
*(uint32_t *) (batch->ptr) = 0;
- batch->ptr += 8;
+ batch->ptr += 4;
}
/* Round batchbuffer usage to 2 DWORDs. */