http://bugs.winehq.org/show_bug.cgi?id=32823
--- Comment #21 from Austin English austinenglish@gmail.com 2013-02-14 23:45:48 CST --- (In reply to comment #20)
Oh hence, LIBGL_DRIVERS_PATH is wrong, use LD_LIBRARY_PATH ! Your driver doesn't match to the corresponding build. You use your system libs and the just build intel_dri.so, which has different functions locations.
Just using LD_LIBRARY_PATH fails, but using both works for the testcase: [austin@localhost ~]$ LD_LIBRARY_PATH=/home/austin/src/mesa/lib MESA_DEBUG=1 ./test libGL error: failed to load driver: i965 libGL error: Try again with LIBGL_DEBUG=verbose for more details. libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more details. X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 153 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Serial number of failed request: 33 Current serial number in output stream: 35 [austin@localhost ~]$ LIBGL_DRIVERS_PATH=/home/austin/src/mesa/lib LD_LIBRARY_PATH=/home/austin/src/mesa/lib MESA_DEBUG=1 ./test Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable GL_RENDERER = Mesa DRI Intel(R) Ivybridge Mobile GL_VERSION = 3.0 Mesa 9.2-devel (git-8a4d952) GL_VENDOR = Intel Open Source Technology Center
then tried that with d3d9/visual. It still crashes, now in the driver: Backtrace: =>0 0x7e1ddeaf intel_miptree_get_tile_offsets+0x63() in i965_dri.so (0x0032ef78) 1 0x7e2972f1 gen7_update_texture_surface+0x292() in i965_dri.so (0x0032eff8) 2 0x7e28a571 brw_update_texture_surfaces+0x17f() in i965_dri.so (0x0032f038) 3 0x7e2570a3 brw_upload_state+0x240() in i965_dri.so (0x0032f098) 4 0x7e20526c brw_try_draw_prims+0x21d() in i965_dri.so (0x0032f0d8) 5 0x7e2055a3 brw_draw_prims+0x171() in i965_dri.so (0x0032f128) 6 0x7df05ac0 vbo_draw_arrays+0x24c() in libdricore9.2.0.so.1 (0x0032f198) 7 0x7df05b55 vbo_exec_DrawArrays+0x8b() in libdricore9.2.0.so.1 (0x0032f1d8) 8 0x7e35b90a glDrawArrays+0x32() in libgl.so.1 (0x0032f208)