i965: Ensure that URB_FENCE is aligned to 64-bytes bugs/xvmc-crash-on-945
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Dec 2009 10:44:12 +0000 (10:44 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jan 2010 08:18:29 +0000 (09:18 +0100)
commit4d47081dfe02c1a6e5d9f7905fe90f5394619354
tree97a084b31c7d62e95e08de571495c110ba35256e
parent1e99f4878b8d5124179adb6ede99ea2e456d046e
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