Commit 9933b188 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Marge Bot
Browse files

v3dv: Use common entrypoints for VK_EXT_private_data


Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
Part-of: <!8676>
parent 21f9a886
......@@ -2412,55 +2412,3 @@ vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pSupportedVersion)
*pSupportedVersion = MIN2(*pSupportedVersion, 3u);
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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment