radv: handle subpass cache flushes
authorDave Airlie <airlied@redhat.com>
Mon, 20 Feb 2017 05:13:33 +0000 (15:13 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 20 Feb 2017 23:48:37 +0000 (09:48 +1000)
commit6dbb0eaccc346ec5619b1782f7102353015eaa18
tree36ebffdb0ac746c3b151a5286aed5a936a67a846
parent66d1cb587ac7b24fb04f26d30e686c3991fc8885
radv: handle subpass cache flushes

This splits out the cache flush bit setting code
dependent on the src/dest access flags.

It then calls it from the subpass barrier code.

It also marks a TODO to remove the aggressive CS/PS
flushes at some point.

This fixes a bunch of the
dEQP-VK.renderpass.attachment_allocation.input_output.*
tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c