anv: set stencil layout for input attachments
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 26 Nov 2019 15:53:09 +0000 (17:53 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 13 Jan 2020 19:57:33 +0000 (21:57 +0200)
commit2cc14bd7b8919231b12a250c54edb8203fc6fcc0
tree4608fa67cb3c79ab8ef5514d905e4f25de9abb1b
parent21bc16a723ba6cc839513dfa720f21d5517135f7
anv: set stencil layout for input attachments

If an input attachment has a stencil format, we need to set this.

v2: Fish out VkAttachmentReferenceStencilLayoutKHR from
    VkAttachmentReference2KHR::pNext (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: c1c346f16673 ("anv: implement VK_KHR_separate_depth_stencil_layouts")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2891>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2891>
src/intel/vulkan/anv_pass.c