https://bugs.winehq.org/show_bug.cgi?id=41283
Bug ID: 41283 Summary: Corrupt fullscreen in multiple games Product: Wine Version: 1.9.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: wyrex@openmailbox.org Distribution: ---
Created attachment 55598 --> https://bugs.winehq.org/attachment.cgi?id=55598 Fullscreen
In some games windowed mode works but fullscreen is corrupt using Direct3D/DirectDraw renderer. Every one of them have this line in output:
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000006 not handled
Examples: Noble Works, Yome no Imouto to no Inai (attachment).
GPU: Radeon R9 285 wine-staging 1.9.17 Linux 4.6.7-1
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #1 from Wyrex wyrex@openmailbox.org --- Created attachment 55599 --> https://bugs.winehq.org/attachment.cgi?id=55599 +seh output when starting game in fullscreen
https://bugs.winehq.org/show_bug.cgi?id=41283
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #2 from winetest@luukku.com --- Are you using open source or closed source drivers? Does your gpu get recognized correctly by wine? Some testapplication would show how it sees your gpu.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #3 from Wyrex wyrex@openmailbox.org --- It's open source amdgpu. Path of Exile detects gpu as R9 290. SIW 2016 shows Radeon HD 2900 XT.
Card: Advanced Micro Devices [AMD/ATI] Tonga PRO [Radeon R9 285/380] Display Server: X.Org 1.18.4 driver: amdgpu Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz GLX Renderer: Gallium 0.4 on AMD TONGA (DRM 3.3.0 / 4.8.16-1, LLVM 3.9.1) GLX Version: 3.0 Mesa 13.0.3
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #4 from winetest@luukku.com --- WIne source code is missing your gpu. I don't know if it causes this issue but it would be worth to try a patch that adds the support. I think you should open a bug report about it. It's not that complicated to add, but the strings needs to be correct or the patch doesnt work.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #5 from winetest@luukku.com --- Is this bug improved with the patch you created?
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #6 from Wyrex wyrex@openmailbox.org --- No, I don't see any change.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #7 from winetest@luukku.com --- (In reply to Wyrex from comment #6)
No, I don't see any change.
That corruption is really odd. What's the game you took the screen capture? Is it only this game or multiple games? You should attach default output without any channels and I would suggest to open a mesa bug report. I am not sure at all that's wine bug. It's so badly corrupted.
https://bugs.winehq.org/show_bug.cgi?id=41283
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Could you provide an apitrace? This would be an easy way to rule out a wine issue, if the replay works with different gpus/drivers.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #9 from Wyrex wyrex@openmailbox.org --- (In reply to Fabian Maurer from comment #8)
Could you provide an apitrace? This would be an easy way to rule out a wine issue, if the replay works with different gpus/drivers.
I haven't used apitrace before, would this suffice? Used Noble Works since it has Direct3D,DirectDraw and GDI modes.
LANG="ja_JP.UTF-8" WINEPREFIX="$HOME/VN/wineYuzusoft3" apitrace32 trace wine nobleworks.exe
Opened it in windowed Direct3D mode, switched to fullscreen and back. Then switched to DirectDraw mode and fullscreen -> windowed and quit the program.
http://www.mediafire.com/file/glnmdenkn77uep9/apitrace.tar.xz
This game works using GDI renderer but only using virtual desktop and selecting "Specific settings to avoid bugs" -> "Change method of switching resolutions" from menu (GDI fullscreen is otherwise only window in left corner).
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #10 from Wyrex wyrex@openmailbox.org --- Created attachment 56960 --> https://bugs.winehq.org/attachment.cgi?id=56960 apitrace replay
Warnings from replay attached.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #11 from Wyrex wyrex@openmailbox.org --- Some more notes: Inside 1920x1080 virtual desktop Direct3D/DirectDraw works in fullscreen mode with "Change method of switching resolutions" enabled but windowed mode only shows part of window. GDI mode looks blurry unlike other two.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #12 from Wyrex wyrex@openmailbox.org --- If I run with wine-staging 2.7 and WINEDEBUG=warn+all all affected programs spam these lines once the corruption shows after entering fullscreen. Should I file mesa bug after all, or is this wine problem?
warn:d3d:context_validate_rt_config Invalid render target config, need at least one attachment. warn:d3d_draw:draw_primitive Unable to apply draw state, skipping draw. warn:d3d_perf:texture_resource_sub_resource_map Mapping a dynamic texture without WINED3D_MAP_DISCARD.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #13 from Wyrex wyrex@openmailbox.org --- I finally found a way to work around this. These two must be set and corruption goes away in Direct3D fullscreen:
MESA_GL_VERSION_OVERRIDE=3.0 MESA_GLSL_VERSION_OVERRIDE=320
Setting higher GL version causes black screen and "Mesa: User error: GL_INVALID_ENUM in glGetString(GL_EXTENSIONS)". Higher GLSL version causes corruption.
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #14 from Wyrex wyrex@openmailbox.org --- Created attachment 58247 --> https://bugs.winehq.org/attachment.cgi?id=58247 working pic
https://bugs.winehq.org/show_bug.cgi?id=41283
--- Comment #15 from Wyrex wyrex@openmailbox.org --- Sorry, just noticed GLSL 320 doesn't exist so it defaulted back to 100. 100 and 110 work but others are corrupt.
https://bugs.winehq.org/show_bug.cgi?id=41283
Wyrex wyrex@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #16 from Wyrex wyrex@openmailbox.org --- I think this can be closed, radeonsi driver updates have made some affected games playable and thus problem not in wine.
https://bugs.winehq.org/show_bug.cgi?id=41283
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=41283
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED
--- Comment #18 from Austin English austinenglish@gmail.com --- This was inadvertently caught up in my unclosed bugs filter. NOTOURBUG should only be closed when fixed upstream.
Setting back to RESOLVED NOTOURBUG.
Sorry for the spam.