radv: optimize radv_stage_flush() for pre fragment shader stages
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 17 Jul 2018 15:03:26 +0000 (17:03 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Jul 2018 08:09:05 +0000 (10:09 +0200)
commitd9526384bd98f335e421b44dc261f0b0a880a7ff
treeb53ac48780517e3a19fb7b8bf33cb34ee121ab0d
parent0f29006256d32cd79e100d2dbde1188387a8dbed
radv: optimize radv_stage_flush() for pre fragment shader stages

We don't need to emit PS_PARTIAL_FLUSH for the pre fragment shader
stages (ie. geometry/tessellation). Emitting VS_PARTIAL_FLUSH
is enough for these stages. Note that PS_PARTIAL_FLUSH also
synchronizes all vertex stages.

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