radv: fix meta save/restore state with non renderable images
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 Mar 2021 13:02:11 +0000 (14:02 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Mar 2021 16:09:42 +0000 (16:09 +0000)
commit9863ed9bf3b38f4c168ff9b477095f3972290477
tree1e956530e1a282fc5ea8fc220e064050531abf78
parentb42204e4d09e048d12bb6d5ca7cef54c66850107
radv: fix meta save/restore state with non renderable images

For non renderable images, the driver performs some transfer operations
with compute shaders on the gfx queue, but it was saving the gfx state
instead of the compute state.

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/9474>
src/amd/vulkan/radv_meta_clear.c
src/amd/vulkan/radv_meta_copy.c