zink: don't start multiple cache jobs for the same program
if there's already a cache job in flight then starting a second one is illegal cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24831>
This commit is contained in:

committed by
Marge Bot

parent
87e2d5d605
commit
d5157356ce
@@ -366,7 +366,7 @@ zink_screen_update_pipeline_cache(struct zink_screen *screen, struct zink_progra
|
|||||||
|
|
||||||
if (in_thread)
|
if (in_thread)
|
||||||
cache_put_job(pg, screen, 0);
|
cache_put_job(pg, screen, 0);
|
||||||
else
|
else if (util_queue_fence_is_signalled(&pg->cache_fence))
|
||||||
util_queue_add_job(&screen->cache_put_thread, pg, &pg->cache_fence, cache_put_job, NULL, 0);
|
util_queue_add_job(&screen->cache_put_thread, pg, &pg->cache_fence, cache_put_job, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user