r600g: align flushing of cb/db with DDX/r600c.
authorDave Airlie <airlied@redhat.com>
Fri, 10 Sep 2010 01:27:31 +0000 (11:27 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 10 Sep 2010 01:29:23 +0000 (11:29 +1000)
commit42da02743358fd4b212f47d2727340dcd0578b5a
tree63b10ab1983983fc62d15800c8eb1021902e5a56
parente795ca8f3175fa6fd97b6b2ef2775e3f8803012a
r600g: align flushing of cb/db with DDX/r600c.

the DDX and r600c both flush cb/db after the draw is emitted,
as long as they do that, r600g can't be different, as it races.

We end up with r600g flush, set CB, DDX set CB, flush. This
was causing misrendering on my evergreen, where sometimes the drawing
would go to an old CB.
src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/radeon.h
src/gallium/winsys/r600/drm/r600_state.c
src/gallium/winsys/r600/drm/r600_states.h