From b4bbabf21b5a80e9ee1700cb9d3306666aa244a4 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 6 Oct 2016 15:21:50 -0700 Subject: anv: Move BindImageMemory to anv_image.c Signed-off-by: Nanley Chery Reviewed-by: Chad Versace Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_device.c | 20 -------------------- src/intel/vulkan/anv_image.c | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src/intel/vulkan') diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index c7b997904bf..9f8fa33e2f9 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1421,26 +1421,6 @@ VkResult anv_BindBufferMemory( return VK_SUCCESS; } -VkResult anv_BindImageMemory( - VkDevice device, - VkImage _image, - VkDeviceMemory _memory, - VkDeviceSize memoryOffset) -{ - ANV_FROM_HANDLE(anv_device_memory, mem, _memory); - ANV_FROM_HANDLE(anv_image, image, _image); - - if (mem) { - image->bo = &mem->bo; - image->offset = memoryOffset; - } else { - image->bo = NULL; - image->offset = 0; - } - - return VK_SUCCESS; -} - VkResult anv_QueueBindSparse( VkQueue queue, uint32_t bindInfoCount, diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 77dcd46236e..7dada66d701 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -316,6 +316,26 @@ anv_DestroyImage(VkDevice _device, VkImage _image, anv_free2(&device->alloc, pAllocator, anv_image_from_handle(_image)); } +VkResult anv_BindImageMemory( + VkDevice device, + VkImage _image, + VkDeviceMemory _memory, + VkDeviceSize memoryOffset) +{ + ANV_FROM_HANDLE(anv_device_memory, mem, _memory); + ANV_FROM_HANDLE(anv_image, image, _image); + + if (mem) { + image->bo = &mem->bo; + image->offset = memoryOffset; + } else { + image->bo = NULL; + image->offset = 0; + } + + return VK_SUCCESS; +} + static void anv_surface_get_subresource_layout(struct anv_image *image, struct anv_surface *surface, -- cgit v1.2.3