doitsujin / dxvk

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine
zlib License
12.27k stars 785 forks source link

SH2ee: incorrect directx front buffer #3943

Open legluondunet opened 3 months ago

legluondunet commented 3 months ago

Hello, SH2ee is an open source project to play Silent Hill 2 on modern computer, the devs maintain a Wine compatibility. Since DXVK 2.2, an issue appears: when you want to quit the game, quit menu superimposed with main menu, main menu does not disappear to let the place to quit menu :

image

I opened an issue on SH2ee Github here: https://github.com/elishacloud/Silent-Hill-2-Enhancements/issues/942

The SH2ee devs think it is related to directx front buffer

I make several tests and can not reproduce this issue with DXVK =< 2.1

Thank you for your help.

my config: Manjaro 23.1.3 Vulcan Kernel: x86_64 Linux 6.6.19-1-MANJARO Proc: AMD Ryzen 9 5900HX GPU: AMD Radeon RX 6600M Drivers: Mesa 24.0.2 Resolution: 1920x1080 32 Go RAM DE: Xfce4

legluondunet commented 3 months ago

I joined Wine log.

this is the log messages when I try to reproduce the issue:

warn:  D3D9Surface::QueryInterface: Unknown interface query
warn:  00000000-1c77-4d40-b0cf-98fefdffffff
NoTex Character
warn:  D3D9Surface::QueryInterface: Unknown interface query
warn:  22222222-1c77-4d40-b0cf-98fefdffffff
warn:  D3D9Surface::QueryInterface: Unknown interface query
warn:  11111111-1c77-4d40-b0cf-98fefdffffff

SH2ee_wine.log

Blisto91 commented 3 months ago

Hi there. Would it be possible for you to make a apitrace?

legluondunet commented 3 months ago

Voilà: https://mega.nz/file/T1BHQSgA#2IWFi2eFschViZY4kvdgM340YCNhqJe9q14sUxIcC3Q

Blisto91 commented 3 months ago

Thank you. Though it seems the issue is baked in to the trace as it shows with dxvk 2.1 too and wined3d.

legluondunet commented 3 months ago

Do you need another apitrace? Others information?

Blisto91 commented 2 months ago

No need. I managed to get my hands on a retail copy of the game. I've bisected the issue to start with commit https://github.com/doitsujin/dxvk/commit/5443a2f9f581e2cc578579605bf028089a675ef9

Blisto91 commented 2 months ago

Apitraces of both the native game and dxvk 2.3.1 on Windows https://drive.proton.me/urls/YY20V9BS74#btRWEjecHSgc