mesa: fix buffer refcounting with multiple contexts, fixes for _mesa_reserve_parameter_storage
This fixes the Blender crash.
The other fixes are something I noticed in the code.
This fixes the Blender crash.
The other fixes are something I noticed in the code.