i965: Ensure that URB_FENCE is aligned to 64-bytes
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Dec 2009 10:44:12 +0000 (10:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jan 2010 19:21:31 +0000 (19:21 +0000)
commit4902f546be19e3d5bb47f6c75e2199dc4856c0f4
treef968fbac699a8f594c0681816cc3e355490e849b
parent83626aba357ffb4dd7931daaf163c1dd1d08f9d3
i965: Ensure that URB_FENCE is aligned to 64-bytes

The PRM (Vol 1, p32) specifies that the URB_FENCE command must not cross
a cache-line boundary (64-bytes) in order to workaround a silicon issue.
Ensure that it does not by inserting an alignment point before the atomic
section.

This is a slightly too large hammer, but the easiest method to work with
the current BEGIN_BATCH/ADVANCE_BATCH protections.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/i830_batchbuffer.h
src/i965_render.c