r600g: don't emit surface_sync after FLUSH_AND_INV_EVENT
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 3 May 2013 13:56:31 +0000 (09:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 May 2013 14:55:05 +0000 (10:55 -0400)
commit4539f8e20af286d1f521eb016c89c6d9af0b801c
treefff96bd6bbd3d15625ffae4960b604280e0eadcc
parent41005d7bd203b10cee70a88abbaf805909712d88
r600g: don't emit surface_sync after FLUSH_AND_INV_EVENT

It shouldn't be needed since the FLUSH_AND_INV_EVENT has already
made sure the destination caches are flushed.  Additionally,
we didn't previously emit the surface_sync until this commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5e4c07e7964a3258ed02b530bcdc24c0650204b
Emitting them together causes hangs in compute on cayman/TN
and hangs in Heaven on evergreen.

Note: this patch is a candidate for the 9.1 branch, but requires:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=156bcca62c9f4e79e78929f72bc085757f36a65a
as well.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_hw_context.c