anv: Add TRANSFER_SRC to pass usage not subpass usage
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 25 Mar 2020 05:43:14 +0000 (00:43 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:45:39 +0000 (22:45 +0000)
commit5808efdf40d2496e14625322c1f9e8bdbe6f8c36
treec6e79badecbef59ba1e846d339db77c20a2d3626
parent513ed7542a4dd510bfc1cd0724ee8da8885f6568
anv: Add TRANSFER_SRC to pass usage not subpass usage

The subpass usage flags are supposed to always be one bit and never
multiple bits.  However, when adding in TRANSFER_SRC usage for resolve
attachments we were adding it to the subpass bits and not the render
pass bits.  This potentially is causing issues where images aren't
getting marked written properly.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4393>
src/intel/vulkan/anv_pass.c
src/intel/vulkan/genX_cmd_buffer.c