vulkan: Re-order arguments to vk_command_pool_init

Most other init functions follow the Vulkan API convention of putting
the parent object first.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18324>
This commit is contained in:
Jason Ekstrand
2022-08-31 13:33:07 -05:00
committed by Marge Bot
parent ea9e7ecdc1
commit f90e2af996
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -6117,7 +6117,7 @@ radv_CreateCommandPool(VkDevice _device, const VkCommandPoolCreateInfo *pCreateI
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
VkResult result = vk_command_pool_init(&pool->vk, &device->vk, pCreateInfo, pAllocator);
VkResult result = vk_command_pool_init(&device->vk, &pool->vk, pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
return result;
+1 -1
View File
@@ -3810,7 +3810,7 @@ tu_CreateCommandPool(VkDevice _device,
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
@@ -192,7 +192,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateCommandPool(
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
+1 -1
View File
@@ -381,7 +381,7 @@ panvk_CreateCommandPool(VkDevice _device,
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
VkResult result = vk_command_pool_init(&pool->vk, &device->vk,
VkResult result = vk_command_pool_init(&device->vk, &pool->vk,
pCreateInfo, pAllocator);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, pAllocator, pool);
+3 -3
View File
@@ -31,8 +31,8 @@
#include "vk_log.h"
VkResult MUST_CHECK
vk_command_pool_init(struct vk_command_pool *pool,
struct vk_device *device,
vk_command_pool_init(struct vk_device *device,
struct vk_command_pool *pool,
const VkCommandPoolCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator)
{
@@ -75,7 +75,7 @@ vk_common_CreateCommandPool(VkDevice _device,
if (pool == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
result = vk_command_pool_init(pool, device, pCreateInfo, pAllocator);
result = vk_command_pool_init(device, pool, pCreateInfo, pAllocator);
if (unlikely(result != VK_SUCCESS)) {
vk_free2(&device->alloc, pAllocator, pool);
return result;
+2 -2
View File
@@ -51,8 +51,8 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(vk_command_pool, base, VkCommandPool,
VK_OBJECT_TYPE_COMMAND_POOL)
VkResult MUST_CHECK
vk_command_pool_init(struct vk_command_pool *pool,
struct vk_device *device,
vk_command_pool_init(struct vk_device *device,
struct vk_command_pool *pool,
const VkCommandPoolCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator);