vulkan: Clean up renderpass/offscreen creation
authorBenjamin Otte <otte@redhat.com>
Fri, 21 Jul 2023 22:54:03 +0000 (00:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Jul 2023 21:30:15 +0000 (23:30 +0200)
commit1bd820fc60e3ce6dce20ac20613537ed4950719c
treef239e9a9e8f130c81dac86137f850fdefd7945a4
parenta4247f1358407d866353f99e60f81f5eb92f92a0
vulkan: Clean up renderpass/offscreen creation

Instead of scale and whatnot, pass:
1. The image size
2. The viewport to map to that image size
and compute everything else from there.

In particular, we set the Vulkan viewport to the image dimensions
instead of the viewport size.

All of this makes things a lot simpler while keeping the required
functionality.
gsk/vulkan/gskvulkanrender.c
gsk/vulkan/gskvulkanrenderer.c
gsk/vulkan/gskvulkanrenderpass.c
gsk/vulkan/gskvulkanrenderpassop.c
gsk/vulkan/gskvulkanrenderpassopprivate.h
gsk/vulkan/gskvulkanrenderpassprivate.h