radv/gfx10: make sure to wait for idle before clearing GDS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 11 Sep 2019 07:19:21 +0000 (09:19 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Sep 2019 10:08:22 +0000 (12:08 +0200)
commit63b20fb0cf3e6a8f4027859141e3380c7932c43f
treed3498bb8c820414214a2287edbafc113e84f8d0a
parent7314f6ef97cd3dabb75774abc6283a8813e158ca
radv/gfx10: make sure to wait for idle before clearing GDS

Otherwise the next streamout operation will overwrite GDS. This
can be improved by tracking if there is a streamout operation in
flight. Currently the driver unconditionally flushes but that
doesn't matter much as NGG streamout is disabled by default.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c