http://bugs.winehq.org/show_bug.cgi?id=27350
Summary: Eve Online UI elements not drawn Product: Wine Version: 1.3.21 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: keldon@keldon.net
Created an attachment (id=34976) --> (http://bugs.winehq.org/attachment.cgi?id=34976) shader errors and source
A recent patch to Eve Online changed the underlying UI code, and now only the background of the login screen appears, with no UI elements drawn on top. The console output includes:
fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #4: fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:28(53): error: type mismatch
The full GLSL source that failed to compile is also printed; I'll attach it.
I'm using the r600g driver from Mesa git.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #1 from ruben_verheyden@hotmail.com 2011-06-01 14:45:51 CDT --- Created an attachment (id=34985) --> (http://bugs.winehq.org/attachment.cgi?id=34985) Terminal ouput with errors
I have the same issue.
Before the last patch the game was running fine. Now there are no UI elements drawn, but the sound works and the login background looks fine.
My System information (laptop): Linux 2.6.38-ARCH #1 SMP PREEMPT Mon May 23 22:02:08 CEST 2011 x86_64 Intel GMA 4500MHD wine-1.3.21
Main errors: fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #7: fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #4: fixme:d3d_shader:print_glsl_info_log linking with uncompiled shader err:d3d_shader:set_glsl_shader_program >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Find glsl program uniform locations @ ../../../wine/dlls/wined3d/glsl_shader.c / 4449 err:d3d_shader:set_glsl_shader_program >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUseProgramObjectARB(programId) @ ../../../wine/dlls/wined3d/glsl_shader.c / 4462
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #2 from Keldon Jones keldon@keldon.net 2011-06-01 15:09:09 CDT --- The problem seems related to this Mesa bug:
https://bugs.freedesktop.org/show_bug.cgi?id=29537
I can workaround this problem by adding a prototype for texture2DLod in the Mesa source in src/glsl/builtins/profiles/120.frag . Eve appears to run fine with this change.
If Mesa bug 29537 is correct, Wine shouldn't be calling the Lod functions here.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #3 from Keldon Jones keldon@keldon.net 2011-06-02 21:16:58 CDT --- Created an attachment (id=34998) --> (http://bugs.winehq.org/attachment.cgi?id=34998) Wine workaround
The attached patch to Wine works around the error by always enabling the ARB_texture_shader_lod extension. This extension allows the use of the Lod functions in fragment shaders.
http://bugs.winehq.org/show_bug.cgi?id=27350
Alexandre Rostovtsev tetromino@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tetromino@gmail.com
--- Comment #4 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-03 00:26:21 CDT --- Confirming the bug.
wine-1.3.21 Linux 2.6.39-gentoo #1 SMP PREEMPT Tue May 24 21:25:30 EDT 2011 x86_64 Intel(R) Core(TM)2 Duo CPU P7370 @ 2.00GHz GenuineIntel GNU/Linux Intel GM45 graphics latest Mesa git 7.10 branch
Getting the same symptoms as described above and the same sorts of error messages:
trace:d3d_shader:shader_glsl_compile glCompileShaderARB call ok /var/tmp/portage /app-emulation/wine-1.3.21/work/wine-1.3.21/dlls/wined3d/glsl_shader.c / 267 fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #4: fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:28(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:36(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:47(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:49(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:58(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:60(53): error: type mismatch fixme:d3d_shader:print_glsl_info_log 0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)' fixme:d3d_shader:print_glsl_info_log 0:72(53): error: type mismatch trace:d3d_shader:set_glsl_shader_program Attaching GLSL shader object 4 to program 1
Note that on a machine with an Nvidia card (binary drivers, version 270.41.19), the game runs perfectly under wine-1.3.21.
http://bugs.winehq.org/show_bug.cgi?id=27350
Mike lun0s@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lun0s@hotmail.com
--- Comment #5 from Mike lun0s@hotmail.com 2011-06-06 12:56:28 CDT --- Confirming this issue is present on ATI Radeon HD 4870 using latest(11.5) binary drivers.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #6 from Henri Verbeet hverbeet@gmail.com 2011-06-07 12:51:48 CDT --- Should be fixed by 95bd0ec61cafc2d848e00badc793db15d0b73b01.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #7 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-07 21:16:21 CDT --- (In reply to comment #6)
Should be fixed by 95bd0ec61cafc2d848e00badc793db15d0b73b01.
Unfortunately, no. Applying the patch from http://source.winehq.org/git/wine.git/patch/95bd0ec61cafc2d848e00badc793db15... to wine-1.3.21 did not fix the issue. Still getting the same error messages (no matching function for call to `texture2DLod(sampler2D, vec2, float)'), same symptoms (no UI elements drawn).
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #8 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-07 23:25:10 CDT --- Created an attachment (id=35064) --> (http://bugs.winehq.org/attachment.cgi?id=35064) log with WINEDEBUG="+d3d_caps,+d3d_shader" and wine git master HEAD on Intel GM45
(In reply to comment #6)
Just in case, I tested with the current wine git master HEAD (5bf7622fc3ad043cb17accfefcaf5b6371f80a8e). And on my machine with Intel GM45 graphics, it still fails to draw UI elements.
I am attaching the log from launching Eve under wine git HEAD and WINEDEBUG="+d3d_caps,+d3d_shader" (also includes my glxinfo -l output).
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #9 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-07 23:28:55 CDT --- Created an attachment (id=35065) --> (http://bugs.winehq.org/attachment.cgi?id=35065) Eve login screen without UI elements (on Intel)
For reference, here is what the Eve Online login screen looks like on a machine with Intel graphics; UI elements are not drawn.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #10 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-07 23:31:57 CDT --- Created an attachment (id=35066) --> (http://bugs.winehq.org/attachment.cgi?id=35066) Eve login screen with UI elements drawn correctly (on Nvidia)
And here is what the login screen is supposed to look like. Screenshot taken on a machine with an Nvidia card and binary drivers under wine-1.3.21.
http://bugs.winehq.org/show_bug.cgi?id=27350
Alexandre Rostovtsev tetromino@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #11 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-07 23:34:02 CDT --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #12 from Henri Verbeet hverbeet@gmail.com 2011-06-08 04:49:57 CDT --- The Intel driver just doesn't support ARB_shader_texture_lod, so it's not going to work there. It should work for r600g though.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #13 from Henri Verbeet hverbeet@gmail.com 2011-06-08 04:56:25 CDT --- Created an attachment (id=35068) --> (http://bugs.winehq.org/attachment.cgi?id=35068) patch
Actually, does the attached patch make any difference for Intel cards? It should prevent the game from using SM3 shaders.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #14 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-08 12:21:18 CDT --- (In reply to comment #13)
Created an attachment (id=35068)
--> (http://bugs.winehq.org/attachment.cgi?id=35068) [details]
patch
Actually, does the attached patch make any difference for Intel cards? It should prevent the game from using SM3 shaders.
With this patch applied to wine git master HEAD, the game works on my Intel GM45 machine. All the UI elements are drawn properly.
http://bugs.winehq.org/show_bug.cgi?id=27350
jinx.wolf@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jinx.wolf@gmail.com
--- Comment #15 from jinx.wolf@gmail.com 2011-06-09 14:40:16 CDT --- (In reply to comment #13)
Created an attachment (id=35068)
--> (http://bugs.winehq.org/attachment.cgi?id=35068) [details]
patch
Actually, does the attached patch make any difference for Intel cards? It should prevent the game from using SM3 shaders.
Confirmed fix for Intel drivers. I have a first gen Intel GMA HD. I'm still having issues with Character Creation, but that was prior to the UI issues.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #16 from Henri Verbeet hverbeet@gmail.com 2011-06-21 12:55:01 CDT --- Should be fixed by c51db63ba4eda7e2cb565ebadf5ede8fe6e1a9dd for Intel as well.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #17 from Alexandre Rostovtsev tetromino@gmail.com 2011-06-23 22:59:32 CDT --- Well, after the most recent update (Incarna 1.0, released on June 21), EVE Online no longer runs on Intel cards at all. Both under wine-1.3.21 and wine git HEAD, it quits with the message "Shader Model 3 (SM3) support is needed to run this game. Click OK to close the game client."
I guess that people with Intel cards will have to wait for Mesa developers to add ARB_texture_shader_lod extension support to the i965 driver.
http://bugs.winehq.org/show_bug.cgi?id=27350
--- Comment #18 from Henri Verbeet hverbeet@gmail.com 2011-06-24 07:32:20 CDT --- (In reply to comment #17)
Well, after the most recent update (Incarna 1.0, released on June 21), EVE Online no longer runs on Intel cards at all. Both under wine-1.3.21 and wine git HEAD, it quits with the message "Shader Model 3 (SM3) support is needed to run this game. Click OK to close the game client."
I guess that people with Intel cards will have to wait for Mesa developers to add ARB_texture_shader_lod extension support to the i965 driver.
That's too bad. I know the Intel people have been working on this though ( dd3b812962a8720aca0a80bf6ea35f70319d3ca1 and preceding commits), so the next Mesa release will likely support this.
http://bugs.winehq.org/show_bug.cgi?id=27350
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #19 from Henri Verbeet hverbeet@gmail.com 2011-06-24 07:34:50 CDT --- Marking this one fixed though.
http://bugs.winehq.org/show_bug.cgi?id=27350
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org 2011-06-24 17:45:16 CDT --- Closing bugs fixed in 1.3.23.
http://bugs.winehq.org/show_bug.cgi?id=27350
PatronDragon patrondragon@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |patrondragon@mail.ru