anv/pass: Store the depth-stencil attachment's last subpass index
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 1 Feb 2017 03:01:18 +0000 (19:01 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 2 Feb 2017 18:36:14 +0000 (10:36 -0800)
commit043d92fef9315dcc303f36d472eb38b5511bb2cd
tree95e1033b66e697826b2611c6b4dd6a74e1cf3107
parenta020cb3a72019748fee1824fc542b3b8225226c9
anv/pass: Store the depth-stencil attachment's last subpass index

Commit 968ffd6c868af7226e8f889573eef709888151cb stored the last subpass
index of all the attachments but that of the depth-stencil attachment.
This could cause depth buffers used in multiple subpasses not to be in
the requested final layout. Fix this error.

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_pass.c