protonscr

D9VK corrupts XWAYLAND server

dxvkclosed
doitsujin/dxvk#1504 · opened 2020-03-10 by shumvgolove · updated 2020-03-11 · 3 comments · github
Sshumvgolove 2020-03-10 github

I am running Sway with xwayland support and have 2 monitors connected - HDMI one connected into AMD card (primary) and VGA one connected into Intel integrated card (secondary). To set my primary display I am using this little command - xrandr --output XWAYLAND1 --primary. For easy testing I am running wine and DXVK from Lutris. As of 1.5.0, D9VK was merged into DXVK and any DXVK version >1.5.0 with any DX9 game results in immediate crash:

info:  D3D9: Setting display mode: 1920x1080@0
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  21 (RRSetCrtcConfig)
  Serial number of failed request:  240
  Current serial number in output stream:  240
Waiting on children
All children gone
Exit with returncode 1

D9VK somehow corrupts XWAYLAND server (from my guessing, see above) and I am unable to run any other game (with or without DXVK). In order to fix this I need to kill the xwayland process and restart Lutris once again.

I am not sure if I need to provide apitrace for this specific case, but if needed I would be happy to.

Software information

Any game that supports DirectX9

System information

  • GPU: AMD RX590
  • Driver: RADV
  • Wine version: doesn't matter, but I've tested with 4.21, 5.0 and 5.2
  • DXVK version: >1.5.0

Log files

Sshumvgolove 2020-03-10 github

After further testing it appears that this is a wine bug. wine 4.17 is the latest version which works perfectly fine, but all versions above throws the exact same error. However, Lutris provides wine versions with prefix -fshack that actually works as intended. For further information - Lutris Wiki and Reddit thread.

Also, this is duplicate of #1267 which should be closed due to the reasons that I have already described. Sorry for the noise.

Ooliverklee 2020-03-11 github

@shumvgolove Just to be sure: Do you know whether there already is a ticket for this issue https://bugs.winehq.org/ so that the Wine dev are aware of this and can fix it?

Sshumvgolove 2020-03-11 github

@oliverklee Don't think there is one, but maybe wine-staging offers some xwayland patch? :thinking:

I think we need to fill out the issue just to be sure.

Nothing extracted yet.