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>
(cherry picked from commit 382798ddbd)
This commit is contained in:
Mike Blumenkrantz 2022-03-02 15:50:50 -05:00 committed by Dylan Baker
parent 5f326287c9
commit eadc089854
2 changed files with 2 additions and 2 deletions

View file

@ -490,7 +490,7 @@
"description": "zink: use a fence for pipeline cache update jobs",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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