OSDN Git Service

radv: Do a cache flush if needed before reading predicates.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 30 Dec 2018 22:37:11 +0000 (23:37 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 31 Dec 2018 19:52:08 +0000 (20:52 +0100)
commit8c93ef5de98a90a93434d351c769f3c06f206397
tree01f8dc87945279384b639cc8c5b8842848db9c61
parent86089a73169cfc526f36f2879fb9348c85583d1a
radv: Do a cache flush if needed before reading predicates.

This caused random failures for two conditional rendering tests:

dEQP-VK.conditional_rendering.draw_clear.draw.update_with_rendering_discard
dEQP-VK.conditional_rendering.draw_clear.draw.update_with_rendering_no_discard

These wrote the predicate with the vertex shader, did a barrier and then
started the conditional rendering. However the cache flushes for the barrier
only happen on first draw, so after the predicate has been read.

Fixes: e45ba51ea45 "radv: add support for VK_EXT_conditional_rendering"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c