radv: bind our internal depth buffer when not provided by the app
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 8 Apr 2021 09:43:00 +0000 (11:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 09:31:13 +0000 (09:31 +0000)
commit164b1884c0d414aa558777813a3e040d694b0a75
treef3e87251edcc789f396332a46801803a8d4e8104
parent513a166a7bb5020d9cd16b6184a2cecc99a825ba
radv: bind our internal depth buffer when not provided by the app

When a subpass uses a VRS attachment without binding a depth/stencil
attachment (yes, this is allowed by the Vulkan spec), we have to bind
our internal depth buffer that contains the VRS data.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187>
src/amd/vulkan/radv_cmd_buffer.c