radv: compute the number of subpass attachments correctly
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Apr 2018 08:53:13 +0000 (10:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 May 2018 20:18:03 +0000 (22:18 +0200)
commitd8db5986cee83078e46895d695d698db87507019
tree06ebe5acc25f1f4fa20ff4152a9cbf50119d03ee
parente66f64c2855604c6148e8e865a65411ff0c3ba02
radv: compute the number of subpass attachments correctly

Only count color attachments twice if resolves are used, also
account for the depth stencil attachment if present.

Cc: 18.0 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_pass.c