r600g: fix userspace fence against lastest kernel
authorJerome Glisse <jglisse@redhat.com>
Tue, 7 Dec 2010 20:15:58 +0000 (15:15 -0500)
committerJerome Glisse <jglisse@redhat.com>
Tue, 7 Dec 2010 22:54:56 +0000 (17:54 -0500)
commitb7617346dcff50a66a10c61b95c33682cf629c9e
tree1099f55e8ed95483169aa3e10ac1bc20d916f131
parent69251fc4cd5f71be403e08398bc43d19052a640d
r600g: fix userspace fence against lastest kernel

R6XX GPU doesn't like to have two partial flush writting
back to memory in row without a prior flush of the pipeline.
Add PS_PARTIAL_FLUSH to flush all work between the CP and
the ES, GS, VS, PS shaders.

Thanks a lot to Alban Browaeys (prahal on irc) for investigating
this issue.

Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/r600d.h