anv: Allocate surface states per-subpass
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 25 Mar 2020 00:24:54 +0000 (19:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:45:39 +0000 (22:45 +0000)
commit814dc6693593c51d7d89da54ab6191dbf862397e
tree57efbe034a04dc93d1855c0c7383ad389bb2f33d
parenta3d185d091fbacd314d76e702d292a363f3c8b55
anv: Allocate surface states per-subpass

Instead of allocating surface states for attachments in BeginRenderPass,
we now allocate them in begin_subpass.  Also, since we're zeroing
things, we can be a bit cleaner about or implementation and just fill
out all those passes for which we have allocated surface states.

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