radv: Add render loop detection in renderpass.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 4 Aug 2019 21:17:20 +0000 (23:17 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Aug 2019 00:13:07 +0000 (02:13 +0200)
commita171a6663d779da4e685e028336f817d855dd4d8
tree1967589f366c374d52d77a6fe83b12c046e18bdd
parenta5b9394b8758e2869c4074f7e2682b6e16b9697a
radv: Add render loop detection in renderpass.

VK spec 7.3:

"Applications must ensure that all accesses to memory that backs
image subresources used as attachments in a given renderpass instance
either happen-before the load operations for those attachments, or
happen-after the store operations for those attachments."

So the only renderloops we can have is with input attachments. Detect
these.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pass.c
src/amd/vulkan/radv_private.h