As of Mesa 23.0.0 somewhere, I get the error "libGL error: did not find extension DRI_Mesa version 1"
Prior to a version of Mesa starting after 23.0.0 (sorry I can't be more specific as I don't know), many of my Steam games require the following command line argument: LIBGL_DRIVERS_PATH=/usr/local/lib/x86_64-linux-gnu/dri %command% This is even after Mesa is specifically compiled with /usr/local as the prefix. This wasn't an issue prior to this change, but now if I don't set the LIBGL_DRIVERS_PATH variable, some games that link with Mesa in /usr/local will fail with the following error:
libGL error: did not find extension DRI_Mesa version 1
As mentioned above, the fix is to specifically tell Mesa where the OpenGL driver is, which it should already know as it was compiled with /usr/local as the prefix.
Furthermore, this error should print the search path to make troubleshooting easier.