gallium/pipebuffer: fix multithread issue on pb_slab_manager_create_buffer
This is an issue found in testing multiple mediafoundation MFT concurrently. Thanks to Jesse for the fix. cc: mesa-stable Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36923>
This commit is contained in:
committed by
Marge Bot
parent
25b1591df5
commit
e76e95e084
@@ -369,7 +369,7 @@ pb_slab_manager_create_buffer(struct pb_manager *_mgr,
|
||||
const struct pb_desc *desc)
|
||||
{
|
||||
struct pb_slab_manager *mgr = pb_slab_manager(_mgr);
|
||||
static struct pb_slab_buffer *buf;
|
||||
struct pb_slab_buffer *buf;
|
||||
struct pb_slab *slab;
|
||||
struct list_head *list;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user