mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
zink: don't access ctx in submit_queue
this can be executed from a thread Fixes:63e17ccc0a("zink: rework sparse semaphore waits") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36643> (cherry picked from commitf5f7a5f801)
This commit is contained in:
parent
ddeb863c54
commit
5b4122e6af
2 changed files with 3 additions and 3 deletions
|
|
@ -2904,7 +2904,7 @@
|
|||
"description": "zink: don't access ctx in submit_queue",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "63e17ccc0a2ed5e762aedfa71d9133672e77aa24",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -646,7 +646,7 @@ submit_queue(void *data, void *gdata, int thread_index)
|
|||
for (unsigned i = 0; i < ARRAY_SIZE(si); i++)
|
||||
si[i].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
|
||||
if (bs->sparse_semaphore)
|
||||
util_dynarray_append(&ctx->bs->acquires, VkSemaphore, bs->sparse_semaphore);
|
||||
util_dynarray_append(&bs->acquires, VkSemaphore, bs->sparse_semaphore);
|
||||
si[ZINK_SUBMIT_WAIT_ACQUIRE].waitSemaphoreCount = util_dynarray_num_elements(&bs->acquires, VkSemaphore);
|
||||
si[ZINK_SUBMIT_WAIT_ACQUIRE].pWaitSemaphores = bs->acquires.data;
|
||||
while (util_dynarray_num_elements(&bs->acquire_flags, VkPipelineStageFlags) < si[ZINK_SUBMIT_WAIT_ACQUIRE].waitSemaphoreCount) {
|
||||
|
|
@ -782,7 +782,7 @@ submit_queue(void *data, void *gdata, int thread_index)
|
|||
_mesa_set_clear(&bs->dmabuf_exports, NULL);
|
||||
|
||||
if (bs->sparse_semaphore)
|
||||
(void)util_dynarray_pop(&ctx->bs->acquires, VkSemaphore);
|
||||
(void)util_dynarray_pop(&bs->acquires, VkSemaphore);
|
||||
|
||||
bs->usage.submit_count++;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue