vulkan: Split texture caching code
authorBenjamin Otte <otte@redhat.com>
Sat, 24 Jun 2023 22:54:10 +0000 (00:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Jul 2023 10:12:36 +0000 (12:12 +0200)
commitba502a50096e56dd9cccf9569491a173101c04a1
tree0670edbbc63e381acc66d5c4cdf822154b51c1e3
parente1d247748534cb3cebb00aec9d3e947553cd1871
vulkan: Split texture caching code

Instead of having one function that gets the image for the texture and
uploads it if it doesn't exist yet, make it 2 functions:

One to get the texture if it exists.
One to assign an uploaded image to the texture.

This way, we can potentially do the upload ourselves.
gsk/vulkan/gskvulkanrenderer.c
gsk/vulkan/gskvulkanrendererprivate.h