Created attachment 30547 [details] [review] Stops the crash in tri-query. I don't know if it helps with anything else though. When running tri-query from progs/trivial a segfault occurs when glGenQueriesARB(1, &OccQuery); (tri-query.c:49) is called.
The r600 driver doesn't support OQ, so the app shouldn't be using it without checking first.
I'll add a GL_ARB_occlusion_query check to the program.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.