anv: store queue creation flags on anv_queue
v2 (Jason Ekstrand): - Pass the whole VkDeviceQueueCreateInfo into anv_queue_init() Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8667>
This commit is contained in:

committed by
Marge Bot

parent
e18d045b69
commit
4b920ba5ab
@@ -2848,7 +2848,8 @@ VkResult anv_CreateDevice(
|
|||||||
|
|
||||||
device->has_thread_submit = physical_device->has_thread_submit;
|
device->has_thread_submit = physical_device->has_thread_submit;
|
||||||
|
|
||||||
result = anv_queue_init(device, &device->queue);
|
result = anv_queue_init(device, &device->queue,
|
||||||
|
&pCreateInfo->pQueueCreateInfos[0]);
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
goto fail_context_id;
|
goto fail_context_id;
|
||||||
|
|
||||||
|
@@ -1573,7 +1573,8 @@ VkResult anv_device_bo_busy(struct anv_device *device, struct anv_bo *bo);
|
|||||||
VkResult anv_device_wait(struct anv_device *device, struct anv_bo *bo,
|
VkResult anv_device_wait(struct anv_device *device, struct anv_bo *bo,
|
||||||
int64_t timeout);
|
int64_t timeout);
|
||||||
|
|
||||||
VkResult anv_queue_init(struct anv_device *device, struct anv_queue *queue);
|
VkResult anv_queue_init(struct anv_device *device, struct anv_queue *queue,
|
||||||
|
const VkDeviceQueueCreateInfo *pCreateInfo);
|
||||||
void anv_queue_finish(struct anv_queue *queue);
|
void anv_queue_finish(struct anv_queue *queue);
|
||||||
|
|
||||||
VkResult anv_queue_execbuf_locked(struct anv_queue *queue, struct anv_queue_submit *submit);
|
VkResult anv_queue_execbuf_locked(struct anv_queue *queue, struct anv_queue_submit *submit);
|
||||||
|
@@ -485,12 +485,13 @@ _anv_queue_submit(struct anv_queue *queue, struct anv_queue_submit **_submit,
|
|||||||
}
|
}
|
||||||
|
|
||||||
VkResult
|
VkResult
|
||||||
anv_queue_init(struct anv_device *device, struct anv_queue *queue)
|
anv_queue_init(struct anv_device *device, struct anv_queue *queue,
|
||||||
|
const VkDeviceQueueCreateInfo *pCreateInfo)
|
||||||
{
|
{
|
||||||
VkResult result;
|
VkResult result;
|
||||||
|
|
||||||
queue->device = device;
|
queue->device = device;
|
||||||
queue->flags = 0;
|
queue->flags = pCreateInfo->flags;
|
||||||
queue->lost = false;
|
queue->lost = false;
|
||||||
queue->quit = false;
|
queue->quit = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user