gsk/vulkan/render: Download image before reset
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 14 Apr 2023 19:27:42 +0000 (16:27 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 14 Apr 2023 19:43:04 +0000 (16:43 -0300)
commit94b1a7837848e25f6e58af5e57bff71c6bcc2296
tree3e26af6db0b8658685be2e0347ad8636cab09617
parent8134daf843e90095d8c0732b4eea94242f9e6c89
gsk/vulkan/render: Download image before reset

gsk_vulkan_render_download_target() currently resets the uploader
objects before downloading the image that it produces. This is
problematic because there might be unreleased buffers and images
in the command queue.

In particular, this can make validation layers complain about the
glyph atlas - of all things! - upload buffer being released while
still being used by the command queue.

Fix that by resetting the uploader after downloading the image.
gsk/vulkan/gskvulkanrender.c