mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
zink: wait on async fence during ctx program removal
removed=true implies that no async jobs are outstanding fixes #9580 cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24811>
This commit is contained in:
parent
0a90994fce
commit
ca987c0dfb
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
simple_mtx_lock((&ctx->program_lock[i]));
|
||||
hash_table_foreach(&ctx->program_cache[i], entry) {
|
||||
struct zink_program *pg = entry->data;
|
||||
util_queue_fence_wait(&pg->cache_fence);
|
||||
pg->removed = true;
|
||||
}
|
||||
simple_mtx_unlock((&ctx->program_lock[i]));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue