zink: use a fence for pipeline cache update jobs

otherwise there's nothing to wait on

cc: mesa-stable

Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15226>
This commit is contained in:
Mike Blumenkrantz 2022-03-02 15:50:50 -05:00 committed by Marge Bot
parent cbd9a91f64
commit 382798ddbd

View file

@ -206,7 +206,7 @@ zink_screen_update_pipeline_cache(struct zink_screen *screen, struct zink_progra
if (!screen->disk_cache)
return;
util_queue_add_job(&screen->cache_put_thread, pg, NULL, cache_put_job, NULL, 0);
util_queue_add_job(&screen->cache_put_thread, pg, &pg->cache_fence, cache_put_job, NULL, 0);
}
static void