radv: flush more stages when semaphore are waiting.
authorDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 21:13:21 +0000 (07:13 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 21:21:31 +0000 (07:21 +1000)
commita52470402515c46cd9f33a5d83dc8d2bc9f7bae9
treedf7b1255b9a62df5a6d7dbec2525c2e43b000ee1
parente0e01895b054847e41b98cbf3939520747a0f32d
radv: flush more stages when semaphore are waiting.

This still doesn't give us complete pWaitDstStageMask support,
but it should provide enough to be correct if not as efficent as
possible.

If we have wait semaphores we must flush between submits and
flush the shaders as well.

This fixes the remaining fails in:
dEQP-VK.synchronization.op.single_queue.semaphore.*ssbo*

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h