[Bug 44345] New: NieR: Automata - Map mode too dark due to cube map binding issues
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(a)winehq.org Reporter: philip.rebohle(a)tu-dortmund.de CC: erich.e.hoover(a)wine-staging.com, michael(a)fds-team.de, sebastian(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 --- Comment #1 from Philip Rebohle <philip.rebohle(a)tu-dortmund.de> --- Created attachment 60227 --> https://bugs.winehq.org/attachment.cgi?id=60227 What the map mode looks like -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 --- Comment #2 from Philip Rebohle <philip.rebohle(a)tu-dortmund.de> --- Created attachment 60228 --> https://bugs.winehq.org/attachment.cgi?id=60228 What the map mode should look like -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia(a)gmail.com Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #3 from Józef Kucia <joseph.kucia(a)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). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d Product|Wine-staging |Wine -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44345 zzzzzyzz(a)hacari.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz(a)hacari.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=44345 Stian Low <wineryyyyy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wineryyyyy@gmail.com --- Comment #4 from Stian Low <wineryyyyy@gmail.com> --- Created attachment 81783 --> http://bugs.winehq.org/attachment.cgi?id=81783 Screenshots dark map bug reproduced for wine-11.14-a37867ddf84 for only renderer=gl fixed via MR-11639 which works for gl and vulkan Screenshots dark map bug reproduced for wine-11.14-a37867ddf84 for only renderer=gl fixed via MR-11639 which works for gl and vulkan MR-11639: - https://gitlab.winehq.org/wine/wine/-/merge_requests/11639 renderer=vulkan is not bugged for latest despite seemingly using `wined3d_shader_resource_view_desc_from_d3d11` same as gl so maybe vulkan is able to handle more robustly/automatically? MR-2177 also created for vkd3d `d3d12_desc_create_srv` despite vulkan already working for whatever reason vs gl: - https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/2177 MR-2177 at least helps overall alignment/consistency between wined3d and vkd3d if nothing else which I consider worthwhile whenever possible. Found NieR dark rendering bug while seeking more duplicates for Frostpunk dark rendering bug reported around the same time but is otherwise unrelated to this bug. - https://bugs.winehq.org/show_bug.cgi?id=45364 This bug seemed trivial enough to fix while I continue search for Frostpunk duplicates. Thanks for fixing bugs for DXVK in the meantime which seems most expeditiously effective. Wish I'd joined the party earlier. Better late than never I hope. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla