mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
v3dv: Use common entrypoints for VK_EXT_private_data
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8676>
This commit is contained in:
parent
21f9a88673
commit
9933b188d2
1 changed files with 0 additions and 52 deletions
|
|
@ -2412,55 +2412,3 @@ vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pSupportedVersion)
|
||||||
*pSupportedVersion = MIN2(*pSupportedVersion, 3u);
|
*pSupportedVersion = MIN2(*pSupportedVersion, 3u);
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult
|
|
||||||
v3dv_CreatePrivateDataSlotEXT(VkDevice _device,
|
|
||||||
const VkPrivateDataSlotCreateInfoEXT* pCreateInfo,
|
|
||||||
const VkAllocationCallbacks* pAllocator,
|
|
||||||
VkPrivateDataSlotEXT* pPrivateDataSlot)
|
|
||||||
{
|
|
||||||
V3DV_FROM_HANDLE(v3dv_device, device, _device);
|
|
||||||
return vk_private_data_slot_create(&device->vk,
|
|
||||||
pCreateInfo,
|
|
||||||
pAllocator,
|
|
||||||
pPrivateDataSlot);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
v3dv_DestroyPrivateDataSlotEXT(VkDevice _device,
|
|
||||||
VkPrivateDataSlotEXT privateDataSlot,
|
|
||||||
const VkAllocationCallbacks* pAllocator)
|
|
||||||
{
|
|
||||||
V3DV_FROM_HANDLE(v3dv_device, device, _device);
|
|
||||||
vk_private_data_slot_destroy(&device->vk, privateDataSlot, pAllocator);
|
|
||||||
}
|
|
||||||
|
|
||||||
VkResult
|
|
||||||
v3dv_SetPrivateDataEXT(VkDevice _device,
|
|
||||||
VkObjectType objectType,
|
|
||||||
uint64_t objectHandle,
|
|
||||||
VkPrivateDataSlotEXT privateDataSlot,
|
|
||||||
uint64_t data)
|
|
||||||
{
|
|
||||||
V3DV_FROM_HANDLE(v3dv_device, device, _device);
|
|
||||||
return vk_object_base_set_private_data(&device->vk,
|
|
||||||
objectType,
|
|
||||||
objectHandle,
|
|
||||||
privateDataSlot,
|
|
||||||
data);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
v3dv_GetPrivateDataEXT(VkDevice _device,
|
|
||||||
VkObjectType objectType,
|
|
||||||
uint64_t objectHandle,
|
|
||||||
VkPrivateDataSlotEXT privateDataSlot,
|
|
||||||
uint64_t* pData)
|
|
||||||
{
|
|
||||||
V3DV_FROM_HANDLE(v3dv_device, device, _device);
|
|
||||||
vk_object_base_get_private_data(&device->vk,
|
|
||||||
objectType,
|
|
||||||
objectHandle,
|
|
||||||
privateDataSlot,
|
|
||||||
pData);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue