Skip to content

zink: prune zink_shader::programs under lock

Mike Blumenkrantz requested to merge zmike/mesa:zink-prune into main

What does this MR do and why?

zink: prune zink_shader::programs under lock

it's possible for a shader to be precompiling its separate shader variants
during destruction, which requires that the programs set be iterated
under lock in order to prune every new variant as it is created without
crashing

fixes crashes in spec@arb_separate_shader_objects@400 combinations.*

cc: mesa-stable

Merge request reports