Commit 63d54d0d authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜
Browse files

panfrost: Protect the variants array with a lock

Without a lock, two threads may bind the same shader CSO simultaneously,
allocate the same variant simultaneously, and then race each other in
the compiler. This manifests in various ways, most commonly failing the
assertion that UBO pushing has only run once. The simple_mtx_t solution
is used in Iris. Fixes the crash in:

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Cc: mesa-stable
parent 49d69528
Pipeline #380308 waiting for manual action with stages