radv: fix copying VRS rates if the ds attachment uses mips
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Jan 2022 16:19:26 +0000 (17:19 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Jan 2022 08:06:38 +0000 (08:06 +0000)
commit447cddd455da2be70b93522d66891c0ccb90a9d5
tree01196ece59126c781e7159b88e4a984fb02eb833
parent86909babc9db4d189abe2f474a03a581a8a34bb1
radv: fix copying VRS rates if the ds attachment uses mips

While the VRS image can't have mips (and no layers because still not
supported by RADV), applications might still want to bind a
depth/stencil attachment where the base level isn't 0.

Found by inspection.

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/14518>
src/amd/vulkan/radv_cmd_buffer.c