swrast fails to load with certain remote X servers
Submitted by Tom Hughes
Assigned to mes..@..op.org
When using a remote X connection to an older machine using NVidia drivers (not Nouveau) the swrast driver fails to load and indirect rendering is used instead which is very slow in some applications. The error reported is:
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
After doing some debugging it appears that the problem is that mesa is deciding that none of the GLX visuals offered by the server are compatible with any of the modes supported by swrast but I suspect it is being rather more strict than is necessary so that, for example, the fact that all the server visuals advertise support for a pbuffer and none of the swrast visuals include one cause all matches to fail.
I am attaching the output of glxinfo run locally on the server machine, and run remotely with swrast failing to load.
I am also attaching a patch that I made to relax some of the tests, which enables at last some visual to match, along with the output of glxinfo from the remote machine with the patch applied.