]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture3d_backend.cpp
Track the order of transfers involving the same objects
[libs/gl.git] / source / backends / vulkan / texture3d_backend.cpp
index 4c9873d9dfaaebb912fd243a26efa80ec564e743..581206c671bf40498344d59a2387eb1c68fe1817 100644 (file)
@@ -36,7 +36,7 @@ void VulkanTexture3D::sub_image(unsigned level, int x, int y, int z, unsigned wd
        bool discard = (x==0 && y==0 && z==0 && wd==level_size.x && ht==level_size.y && dp==level_size.z);
 
        size_t data_size = wd*ht*dp*get_pixel_size(storage_fmt);
-       void *staging = device.get_transfer_queue().prepare_transfer(data_size,
+       void *staging = device.get_transfer_queue().prepare_transfer(this, false, data_size,
                [this, level, discard](){
                        unsigned n_levels = static_cast<const Texture3D *>(this)->levels;
                        change_layout(n_levels, level, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, discard);