Bug 105426 - [regression] Mesa-18.0rc4 - black screen in some Valve games when run under Wine
Summary: [regression] Mesa-18.0rc4 - black screen in some Valve games when run under Wine
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: glsl-compiler (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords: bisected, regression
: 105568 (view as bug list)
Depends on:
Blocks: 77449
  Show dependency treegraph
 
Reported: 2018-03-09 21:52 UTC by i.kalvachev
Modified: 2018-04-07 20:37 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
terminal log of "MESA_GLSL=dump R600_DEBUG=nosb,vs,ps wine steam.exe" (870.66 KB, text/plain)
2018-03-10 11:17 UTC, i.kalvachev
Details

Description i.kalvachev 2018-03-09 21:52:45 UTC
Running Portal, HL2, HL2_LC, L4D2 using wined3d results in black screen. Other than that the games seem to run fine - I can hear the menu sounds. The Steam Overlay also works and displays fps counter and notifications.

In the terminal the following message could be seen:
"00c1:err:d3d:wined3d_debug_callback 0xf399120: "GL_INVALID_OPERATION in glUseProgram(program 7 not linked)"

The problem happens only with the Mesa3D-18.0 branch. I've tried rc4 and rc1.

Everything works properly with Mesa-17.3 and git master from Feb 23 ( 8df11f3fad52507266ca1e97149fd4175ad05471 )

Gallium Nine and native Linux OpenGL versions of the same titles works fine.
I'm with AMD HD5670 - Evergreen Redwood card (R600 driver).
Comment 1 i.kalvachev 2018-03-09 23:50:31 UTC
The problem appears with Wine-3.0rc1 or newer (including Wine-3.3).
It does not appear with Wine-2.22.
Comment 2 Józef Kucia 2018-03-09 23:55:01 UTC
Please attach the full terminal output.
Comment 3 i.kalvachev 2018-03-10 11:17:45 UTC
Created attachment 137961 [details]
terminal log of "MESA_GLSL=dump R600_DEBUG=nosb,vs,ps wine steam.exe"

I'm attaching full log created with
"MESA_GLSL=dump R600_DEBUG=nosb,vs,ps wine steam.exe &> glsl_error.log"

The most relevant line in the output seems to be this one:

"error: declarations for shader output `gl_BackSecondaryColor` are in gl_PerVertex and gl_PerVertex"

It looks like the bug is not related to the R600 driver, but to the glsl-compiler.
Comment 4 Emil Velikov 2018-03-12 17:04:52 UTC
Bisecting the issue to the offending commit would be a good move.

A small shader test [1] for piglit will also be a nice move. Thus one can easily reproduce and + ensure it doesn't happen in the future ;-)

[1] Simple example test
https://cgit.freedesktop.org/piglit/tree/tests/shaders/glsl-algebraic-rcp-sqrt-2.shader_test
Comment 5 Józef Kucia 2018-03-12 20:16:26 UTC
error: declarations for shader output `gl_BackSecondaryColor` are in gl_PerVertex and gl_PerVertex

It looks like the same problem as bug 104668 and bug 104777.

4195eed961ccfe404ae81b9112189fc93a254ded fixes the problem.
Comment 6 i.kalvachev 2018-03-12 22:44:00 UTC
> It looks like the same problem as bug 104668 and bug 104777.
> 4195eed961ccfe404ae81b9112189fc93a254ded fixes the problem.

Well, this is kind of expected, because the current git master does not have that bug.

However, the real bug I am reporting here is that
the above fix is not ported to the Mesa3D-18.0 branch.

You definitely do not want to make a release containing that bug.
Comment 7 Tapani Pälli 2018-03-21 17:05:16 UTC
(In reply to iive from comment #6)
> > It looks like the same problem as bug 104668 and bug 104777.
> > 4195eed961ccfe404ae81b9112189fc93a254ded fixes the problem.
> 
> Well, this is kind of expected, because the current git master does not have
> that bug.
> 
> However, the real bug I am reporting here is that
> the above fix is not ported to the Mesa3D-18.0 branch.
> 
> You definitely do not want to make a release containing that bug.

Mentioned commit is in 18.0.0-rc5, please test.
Comment 8 i.kalvachev 2018-03-22 00:47:54 UTC
(In reply to Tapani Pälli from comment #7)
> Mentioned commit is in 18.0.0-rc5, please test.

I cannot reproduce the bug anymore.
Looks like it is fixed.
Comment 9 Tapani Pälli 2018-03-23 06:04:57 UTC
*** Bug 105568 has been marked as a duplicate of this bug. ***
Comment 10 QwertyChouskie 2018-04-07 20:37:11 UTC
Can confirm TrackMania Nations Forever is fixed in 18.0-rc5.


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.