When using a feedback attachment (the same attachment bound to both input and color within the same subpass) it is possible for the fragment to query the value it is about to overwrite, but it becomes undefined behavior for any given fragment location to execute more than once due to the lack of coherency.
Does vkCmdPipelineBarrier represent a strong enough memory dependency for several such operations to be chained within a single subpass (i.e. the second invocation can observe the changes made by the first through the same feedback attachment), or must I use several subpasses with appropriate dependencies?