mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
nvk: Expose transfer-only queues
Reviewed-by: Thomas H.P. Andersen <phomes@gmail.com> Reviewed-by: Mary Guillemard <mary@mary.zone> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36617>
This commit is contained in:
parent
3ce4504da7
commit
a49c5c07e9
1 changed files with 7 additions and 0 deletions
|
|
@ -1580,6 +1580,13 @@ nvk_create_drm_physical_device(struct vk_instance *_instance,
|
||||||
VK_QUEUE_SPARSE_BINDING_BIT,
|
VK_QUEUE_SPARSE_BINDING_BIT,
|
||||||
.queue_count = 1,
|
.queue_count = 1,
|
||||||
};
|
};
|
||||||
|
if (pdev->info.has_transfer_queue) {
|
||||||
|
pdev->queue_families[pdev->queue_family_count++] = (struct nvk_queue_family) {
|
||||||
|
.queue_flags = VK_QUEUE_TRANSFER_BIT |
|
||||||
|
VK_QUEUE_SPARSE_BINDING_BIT,
|
||||||
|
.queue_count = 2,
|
||||||
|
};
|
||||||
|
}
|
||||||
assert(pdev->queue_family_count <= ARRAY_SIZE(pdev->queue_families));
|
assert(pdev->queue_family_count <= ARRAY_SIZE(pdev->queue_families));
|
||||||
|
|
||||||
pdev->vk.supported_sync_types = nvkmd->sync_types;
|
pdev->vk.supported_sync_types = nvkmd->sync_types;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue