mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 05:40:42 +01:00
turnip: lower the queue priority to 1
To match the default priority of the gallium driver. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18093>
This commit is contained in:
parent
c625d99403
commit
0c6fbfca0c
1 changed files with 15 additions and 1 deletions
|
|
@ -1488,6 +1488,20 @@ tu_queue_init(struct tu_device *device,
|
|||
int idx,
|
||||
const VkDeviceQueueCreateInfo *create_info)
|
||||
{
|
||||
|
||||
/* Match the default priority of fd_context_init. We ignore
|
||||
* pQueuePriorities because the spec says
|
||||
*
|
||||
* An implementation may allow a higher-priority queue to starve a
|
||||
* lower-priority queue on the same VkDevice until the higher-priority
|
||||
* queue has no further commands to execute. The relationship of queue
|
||||
* priorities must not cause queues on one VkDevice to starve queues on
|
||||
* another VkDevice.
|
||||
*
|
||||
* We cannot let one VkDevice starve another.
|
||||
*/
|
||||
const int priority = 1;
|
||||
|
||||
VkResult result = vk_queue_init(&queue->vk, &device->vk, create_info, idx);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
|
@ -1497,7 +1511,7 @@ tu_queue_init(struct tu_device *device,
|
|||
queue->vk.driver_submit = tu_queue_submit;
|
||||
#endif
|
||||
|
||||
int ret = tu_drm_submitqueue_new(device, 0, &queue->msm_queue_id);
|
||||
int ret = tu_drm_submitqueue_new(device, priority, &queue->msm_queue_id);
|
||||
if (ret)
|
||||
return vk_startup_errorf(device->instance, VK_ERROR_INITIALIZATION_FAILED,
|
||||
"submitqueue create failed");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue