https://bugs.winehq.org/show_bug.cgi?id=44345
Bug ID: 44345 Summary: NieR:Automata - Map mode too dark due to cube map binding issues Product: Wine-staging Version: 2.21 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: philip.rebohle@tu-dortmund.de CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
There is a minor visual issue with the map appearing too dark when accessed through the UI's "Map Mode" option, see the attached screenshots.
The reason why this happens is that the game binds a D3D11_SRV_DIMENSION_TEXTURECUBE view to a slot which expects the view dimension to be D3D11_SRV_DIMENSION_TEXTURECUBEARRAY. D3D11 drivers on Windows seem to accept this behaviour and use the cube map nonetheless.
I came across the exact same issue while working on a Vulkan-based D3D11 implementation, and came up with a workaround which always creates a cube map array view even when the D3D11 application requests a non-array cube map, and also changes the shader code to always use cube arrays. Maybe Wine can implement a similar strategy to fix this issue.
My GPU is an AMD RX 480, Mesa 17.3.2, on wine-staging 2.21.
https://bugs.winehq.org/show_bug.cgi?id=44345
--- Comment #1 from Philip Rebohle philip.rebohle@tu-dortmund.de --- Created attachment 60227 --> https://bugs.winehq.org/attachment.cgi?id=60227 What the map mode looks like
https://bugs.winehq.org/show_bug.cgi?id=44345
--- Comment #2 from Philip Rebohle philip.rebohle@tu-dortmund.de --- Created attachment 60228 --> https://bugs.winehq.org/attachment.cgi?id=60228 What the map mode should look like
https://bugs.winehq.org/show_bug.cgi?id=44345
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #3 from Józef Kucia joseph.kucia@gmail.com --- Thanks for the report. I'm aware of this issue but I didn't know any real app which needs this. FWIW, the similar problem is present for D3D11_SRV_DIMENSION_TEXTURE2DARRAY and D3D11_SRV_DIMENSION_TEXTURE2D (and probably other similar cases).
https://bugs.winehq.org/show_bug.cgi?id=44345
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d Product|Wine-staging |Wine
https://bugs.winehq.org/show_bug.cgi?id=44345
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=44345
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=44345
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org