If you want to try mesa-over-Gallium3D my recommendation would be git master, and very current git master at that. The 300g implementation is making great progress but I expect the developers would be horrified if anyone suggested it was ready for release...

That said, error -22 suggests a drm mismatch more than a userspace problem.