memoryformat: fast-path copies of the same format
authorBenjamin Otte <otte@redhat.com>
Wed, 19 Jul 2023 04:45:00 +0000 (06:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 19 Jul 2023 19:30:35 +0000 (21:30 +0200)
commit2cbe89de7d78759c47f9f2cda9b2194a30d7e601
tree83784803ab70e01a49b83f7e95294a131fa52f8f
parent4d9e7d30b00fb0bf33968781276533c178e38ab0
memoryformat: fast-path copies of the same format

Basically, memcpy() asap if possible.

This happens a lot in Vulkan, where we gdk_memory_conert() image
data from memory textures straight into the VulkanBuffer.

And usually we support the format.
gdk/gdkmemoryformat.c