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.