https://bugs.winehq.org/show_bug.cgi?id=44675
Bug ID: 44675 Summary: Stories Untold: DX11 Shader is so strong that text becomes illegible Product: Wine Version: 3.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx11 Assignee: wine-bugs@winehq.org Reporter: rca@psy-q.ch Distribution: ---
Created attachment 60683 --> https://bugs.winehq.org/attachment.cgi?id=60683 Log while playing Stories Untold
In the Windows version, the text on screen in the first chatper of this game should be yellow and easily legible. In WINE 3.3, it's orange-red and almost unreadable.
The attached message repeats endlessly in the log. Perhaps this issue is also related to blur shaders in some DX11 games (e.g. Dirt 3) being too strong. There seems to be a trend of "too much".
The following is on WINE 3.3:
https://i.imgur.com/9S6bXvv.png?1
This is how it looks on Windows:
https://i.redd.it/c3rramoeahaz.png
https://bugs.winehq.org/show_bug.cgi?id=44675
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3dx11 |directx-d3d CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Don't think it's an d3dx issue, shaders are usually a problem with the core d3d library.
Do you know how to use apitrace? If so, you could record a d3d apitrace under wine, then we could just replay the trace to reprodcue the problem.
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #2 from Ramon Cahenzli rca@psy-q.ch --- (In reply to Fabian Maurer from comment #1)
Do you know how to use apitrace?
Not yet :) I just quickly browsed the docs but will have to read a little more about it and then I'll try to generate a trace.
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #3 from Ramon Cahenzli rca@psy-q.ch --- I have apitrace set up now, but Stories Untold does not use d3d9.dll. The log says:
warning: Z:*PATH_REDACTED*\win\apitrace\apitrace-msvc\x86\bin..\lib\wrappers\d3d9.dll was never used: application probably does not use this API
And I'm attaching a much longer log that shows some of the d3d11 messages. I tried to snip those that are endlessly repeating. Maybe one of the known missing features is making the shaders behave in this way?
The apitrace web page lists DX11 in its support matrix, but the binaries released at https://people.freedesktop.org/~jrfonseca/apitrace/ don't include a DLL for it. I'm unable to cross-compile the DLLs from Linux (if they would even compile without Visual Studio).
If I can get to DX11 versions of those DLLs I'm happy to do a trace.
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #4 from Ramon Cahenzli rca@psy-q.ch --- Created attachment 60688 --> https://bugs.winehq.org/attachment.cgi?id=60688 Longer log showing more d3d11 messages
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #5 from Ramon Cahenzli rca@psy-q.ch --- I just found out about DXGI tracing for DX10/11. Ignore my previous comment. Will start on that now.
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #6 from Ramon Cahenzli rca@psy-q.ch --- I have a DXGI trace now. Unfortunately, running apitrace makes the game loop so slow that I can't start a game (the mouse clicks are ignored) so the dark scene from the screenshot is never reached. But there is stuff that is too dark with very weird shaders in the background of the main menu as well. Maybe these things are related and the traces are useful anyway:
https://drive.google.com/drive/folders/1KPyWliGSGQK9u8ikNUDIijaSQzM3bD4t?usp...
The .trace file is when launching Stories Untold.exe via apitrace, but then it launches Steam from within itself and restarts Stories Untold.exe. That produces Stories Untold.1.trace.
https://bugs.winehq.org/show_bug.cgi?id=44675
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Stories Untold: DX11 Shader |Stories Untold: text is |is so strong that text |illegible |becomes illegible |
--- Comment #7 from Matteo Bruni matteo.mystral@gmail.com --- Is the problem also reproducible with the GOG or Steam demo?
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #8 from Ramon Cahenzli rca@psy-q.ch --- The demo shows additional problems not present in the full version. The scene is even darker, you can barely make out the lighted are of the desk lamp:
https://i.imgur.com/tB55ITp.png
The logs are attached but don't differ too much from the full version. DXGI apitrace of the demo is available, but the game crashes after the menu and before getting in-game when being traced:
https://drive.google.com/open?id=1KPyWliGSGQK9u8ikNUDIijaSQzM3bD4t
The error produced is "dxgitrace.dll caused an Access Violation (0xc0000005) in module dxgitrace.dll at 0023:019a4590.", so I guess that's it for apitraces at the moment.
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #9 from Ramon Cahenzli rca@psy-q.ch --- Created attachment 60696 --> https://bugs.winehq.org/attachment.cgi?id=60696 Stories Untold demo log
https://bugs.winehq.org/show_bug.cgi?id=44675
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #10 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-4.9?
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #11 from Ramon Cahenzli rca@psy-q.ch --- Created attachment 64621 --> https://bugs.winehq.org/attachment.cgi?id=64621 Stdout when running on AMD with Mesa 19.0.2
https://bugs.winehq.org/show_bug.cgi?id=44675
--- Comment #12 from Ramon Cahenzli rca@psy-q.ch --- (In reply to joaopa from comment #10)
Does the bug still occur with wine-4.9?
It's worse for me now, I have switched to an AMD graphics card and the game shows only a black screen when going in-game. Menus (accessed via ESC) work, but nothing is rendered, the attached log displays in stdout. I am sorry that I can't test this bug anymore in my original configuration.