mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 07:00:31 +01:00
radv: Implement VkGetDeviceQueue2.
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b137e25277
commit
de5e25898c
1 changed files with 16 additions and 2 deletions
|
|
@ -1403,15 +1403,29 @@ VkResult radv_EnumerateDeviceLayerProperties(
|
|||
return vk_error(VK_ERROR_LAYER_NOT_PRESENT);
|
||||
}
|
||||
|
||||
void radv_GetDeviceQueue2(
|
||||
VkDevice _device,
|
||||
const VkDeviceQueueInfo2* pQueueInfo,
|
||||
VkQueue* pQueue)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_device, device, _device);
|
||||
|
||||
*pQueue = radv_queue_to_handle(&device->queues[pQueueInfo->queueFamilyIndex][pQueueInfo->queueIndex]);
|
||||
}
|
||||
|
||||
void radv_GetDeviceQueue(
|
||||
VkDevice _device,
|
||||
uint32_t queueFamilyIndex,
|
||||
uint32_t queueIndex,
|
||||
VkQueue* pQueue)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_device, device, _device);
|
||||
const VkDeviceQueueInfo2 info = (VkDeviceQueueInfo2) {
|
||||
.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2,
|
||||
.queueFamilyIndex = queueFamilyIndex,
|
||||
.queueIndex = queueIndex
|
||||
};
|
||||
|
||||
*pQueue = radv_queue_to_handle(&device->queues[queueFamilyIndex][queueIndex]);
|
||||
radv_GetDeviceQueue2(_device, &info, pQueue);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue