https://bugs.winehq.org/show_bug.cgi?id=43786
Bug ID: 43786 Summary: The Witcher 3: textures disappear in some places when you move Product: Wine Version: 2.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: shtetldik@gmail.com Distribution: ---
Created attachment 59299 --> https://bugs.winehq.org/attachment.cgi?id=59299 The Witcher 3: Velen cave save with disappearing texture
In some areas when you move, textures toggle, disappearing and appearing back.
But they don't leave a transparent area, but rather just untextured surface when that happens. So I'm not sure if it's the same as other missing texture bugs or not.
I attach a save in Velen cave where that happens, as well as a video capture of that texture toggling.
Graphics:
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.15.0 / 4.12.0-2-amd64, LLVM 5.0.0) OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel (git-3e54493265)
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #1 from Shmerl shtetldik@gmail.com --- Created attachment 59300 --> https://bugs.winehq.org/attachment.cgi?id=59300 The Witcher 3: video with disappearing texture
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #2 from Shmerl shtetldik@gmail.com --- The video uses VP9, but Firefox didn't manage to play it for some reason. Try mpv - it works.
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #3 from Shmerl shtetldik@gmail.com --- Patches used in the test:
1. wined3d-buffer_create wined3d-sample_c_lz xaudio2-get_al_format (from staging). 2. Updated dark ground and varying freeze hack patch: https://bugs.winehq.org/attachment.cgi?id=59283&action=diff
https://bugs.winehq.org/show_bug.cgi?id=43786
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #59299|The Witcher 3: Velen cave |The Witcher 3: Velen cave description|save with disappearing |save with disappearing |texture |texture (GOG GOTY)
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #4 from Shmerl shtetldik@gmail.com --- Some report, this isn't happening with Nvidia blob, so it can be Mesa specific. I'll open a Mesa bug.
https://bugs.winehq.org/show_bug.cgi?id=43786
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|The Witcher 3: textures |The Witcher 3: textures |disappear in some places |flicker in some places when |when you move |you move
https://bugs.winehq.org/show_bug.cgi?id=43786
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #59299|tw3_save_disappearing_textu |tw3_save_flickering_texture filename|re.tar.xz |.tar.xz Attachment #59299|The Witcher 3: Velen cave |The Witcher 3: Velen cave description|save with disappearing |save with flickering |texture (GOG GOTY) |texture (GOG GOTY)
https://bugs.winehq.org/show_bug.cgi?id=43786
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #59300|tw3_disappearing_texture.we |tw3_flickering_texture.webm filename|bm | Attachment #59300|The Witcher 3: video with |The Witcher 3: video with description|disappearing texture |flickering texture
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #5 from Shmerl shtetldik@gmail.com --- I just got an idea, since this issue reminded me a similar problem in the eON wrapped The Witcher 2 (see https://bugs.freedesktop.org/show_bug.cgi?id=98238 ), I tried running the game with the Mesa variable proposed there:
glsl_correct_derivatives_after_discard=true
And it fixes the flickering! The problem is that it seems to also cause some performance hit. May be it can help narrow down the issue in Wine so it could be avoided?
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #6 from Shmerl shtetldik@gmail.com --- Unless it's just game execution path that leads to such behavior and there is no way for Wine to prevent that?
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #7 from Henri Verbeet hverbeet@gmail.com --- (In reply to Shmerl from comment #6)
Unless it's just game execution path that leads to such behavior and there is no way for Wine to prevent that?
If it's indeed the same issue, we could fix this in way very similar to the Mesa workaround, i.e., postpone discards until the last usage of derivatives in the shader.
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #8 from Shmerl shtetldik@gmail.com --- This issue can be often observed on outside walls of wooden houses, like for example near the Inn at the Crossroads and other places.
https://bugs.winehq.org/show_bug.cgi?id=43786
Daniel Oom oom.daniel@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |oom.daniel@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=43786
talkingodlor@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |talkingodlor@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #9 from Shmerl shtetldik@gmail.com --- I found another example of a similar issue, with some face features like beards disappearing in the distance. And it's not fixable with setting glsl_correct_derivatives_after_discard=true
https://bugs.winehq.org/show_bug.cgi?id=43786
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com Status|UNCONFIRMED |NEW Summary|The Witcher 3: textures |The Witcher 3: textures |flicker in some places when |flicker in some places when |you move |you move (derivatives after | |discard) Ever confirmed|0 |1
--- Comment #10 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Shmerl from comment #9)
I found another example of a similar issue, with some face features like beards disappearing in the distance. And it's not fixable with setting glsl_correct_derivatives_after_discard=true
It seems to be a different issue. It could be useful to have instructions how to reproduce it.
https://bugs.winehq.org/show_bug.cgi?id=43786
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #11 from Shmerl shtetldik@gmail.com --- (In reply to Józef Kucia from comment #10)
It seems to be a different issue. It could be useful to have instructions how to reproduce it.
I opened bug 44916.
https://bugs.winehq.org/show_bug.cgi?id=43786
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #12 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-6.5?
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #13 from Shmerl shtetldik@gmail.com --- Just for the context, is wined3d it still using OpenGL or Vulkan now?
https://bugs.winehq.org/show_bug.cgi?id=43786
--- Comment #14 from Shmerl shtetldik@gmail.com --- I'd test if it's Vulkan, otherwise I'd close as well as abandoned.
https://bugs.winehq.org/show_bug.cgi?id=43786
Daniel Oom oom.daniel@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|oom.daniel@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=43786
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch