From e6896aa8dc52f7f258dca8c310fb703cc39cb89b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 25 Sep 2024 02:31:29 +0200 Subject: [PATCH] gpu: Fix argument names --- gsk/gpu/gskgpubuffer.c | 6 +++--- gsk/gpu/gskvulkanmemoryprivate.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gsk/gpu/gskgpubuffer.c b/gsk/gpu/gskgpubuffer.c index e8521defb0..961bfb2a5c 100644 --- a/gsk/gpu/gskgpubuffer.c +++ b/gsk/gpu/gskgpubuffer.c @@ -52,11 +52,11 @@ gsk_gpu_buffer_map (GskGpuBuffer *self) void gsk_gpu_buffer_unmap (GskGpuBuffer *self, - gsize size) + gsize used) { - GSK_GPU_BUFFER_GET_CLASS (self)->unmap (self, size); + GSK_GPU_BUFFER_GET_CLASS (self)->unmap (self, used); - profiler_buffer_uploads += size; + profiler_buffer_uploads += used; gdk_profiler_set_int_counter (profiler_buffer_uploads_id, profiler_buffer_uploads); } diff --git a/gsk/gpu/gskvulkanmemoryprivate.h b/gsk/gpu/gskvulkanmemoryprivate.h index 5fa7f615de..fdc6bbea07 100644 --- a/gsk/gpu/gskvulkanmemoryprivate.h +++ b/gsk/gpu/gskvulkanmemoryprivate.h @@ -44,8 +44,8 @@ static inline void gsk_vulkan_free (GskVulk GskVulkanAllocation *alloc); static inline GskVulkanAllocator * - gsk_vulkan_allocator_ref (GskVulkanAllocator *allocator); -static inline void gsk_vulkan_allocator_unref (GskVulkanAllocator *allocator); + gsk_vulkan_allocator_ref (GskVulkanAllocator *self); +static inline void gsk_vulkan_allocator_unref (GskVulkanAllocator *self); GskVulkanAllocator * gsk_vulkan_direct_allocator_new (VkDevice device, uint32_t vk_type_index,