vk/vulkan.h: Switch BindObjectMemory to a device function and remove the index

This commit is contained in:
Jason Ekstrand
2015-07-08 09:04:16 -07:00
parent e7acdda184
commit bb6567f5d1
3 changed files with 10 additions and 12 deletions
+3 -4
View File
@@ -1118,11 +1118,10 @@ VkResult anv_GetObjectMemoryRequirements(
return VK_SUCCESS;
}
VkResult anv_QueueBindObjectMemory(
VkQueue queue,
VkResult anv_BindObjectMemory(
VkDevice device,
VkObjectType objType,
VkObject object,
uint32_t allocationIdx,
VkDeviceMemory _mem,
VkDeviceSize memOffset)
{
@@ -1144,7 +1143,7 @@ VkResult anv_QueueBindObjectMemory(
default:
break;
}
return VK_SUCCESS;
}
+4 -4
View File
@@ -147,10 +147,10 @@ VkResult anv_CreateSwapChainWSI(
},
(VkDeviceMemory *) &memory);
anv_QueueBindObjectMemory(VK_NULL_HANDLE,
VK_OBJECT_TYPE_IMAGE,
(VkImage) image, 0,
(VkDeviceMemory) memory, 0);
anv_BindObjectMemory(VK_NULL_HANDLE,
VK_OBJECT_TYPE_IMAGE,
(VkImage) image,
(VkDeviceMemory) memory, 0);
ret = anv_gem_set_tiling(device, memory->bo.gem_handle,
surface->stride, I915_TILING_X);