Building with -D b_ndebug=false breaks DOOM and DOOM Eternal
Building Mesa with -D b_ndebug=false
, and thus having assertions enabled, causes crashes in DOOM 2016 and DOOM Eternal, both of which work fine on release builds, but hit this assert when it's enabled: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/vulkan/runtime/vk_buffer.h#L69
There is an argument to be made to just remove this assert from Mesa, since it doesn't catch any bugs the vulkan validation layers don't already catch, but I also don't see why Manjaro is shipping debug builds in the stable repos.
See:
https://github.com/ValveSoftware/Proton/issues/3773#issuecomment-1409002166
https://old.reddit.com/r/linux_gaming/comments/10th9u7/doom_eternal_constant_crashes/
https://old.reddit.com/r/linux_gaming/comments/10s5dxd/i_cant_play_doom_2016_for_some_reason_it_doesnt/