radv: fix buffer to image copies with BC views on the graphics queue
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 17 Jan 2023 16:53:13 +0000 (17:53 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 26 Jan 2023 15:40:32 +0000 (15:40 +0000)
commitaf035281852ee8fa2ef2393f39ec863b5dec97c5
treed0d1a136ace4d22e7a114050cec3893fecb473c6
parent2414591e5cbddc2fe32fdccab829050d5b7646a8
radv: fix buffer to image copies with BC views on the graphics queue

The color surface descriptor needs to be adjusted, otherwise addressing
is wrong.

Fixes tests performed on the graphics queue from
dEQP-VK.api.copy_and_blit.*.image_to_buffer.2d_images.mip_copies_*.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7900
Fixes: 98ba1e0d817 ("radv: Fix mipmap views on GFX10+")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20761>
(cherry picked from commit 18aaa373b701c98ea85058deeaeadac44f120bab)
.pick_status.json
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_private.h