radv: fix clearing attachments in secondary command buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Feb 2019 11:14:59 +0000 (12:14 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Feb 2019 20:42:50 +0000 (21:42 +0100)
commit5671f38085216caf2cbf221a9fcda08b7571a762
tree1894073d4b7a3a4985d5d999048b2fb8599dbb13
parent773b3ceacaf6d32135348e07878b8514a4350b0e
radv: fix clearing attachments in secondary command buffers

If no framebuffer is bound, get the number of samples and the
image format from the render pass.

This fixes new CTS dEQP-VK.geometry.layered.*.secondary_cmd_buffer.

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