protonscr

Call of Duty Advanced Warfare crashes, fails to create texture

dxvkclosed game bug
doitsujin/dxvk#522 · opened 2018-07-29 by pingubot · updated 2018-08-09 · 4 comments · github
Ppingubot 2018-07-29 github

The game crashes with an error message about not being able to create a 2d texture.
At the same time an error show up in the dxvk d3d11.log about not being able to create a texture. before there are many warnings about unknown interface queries.

Software information

Call of Duty Advanced Warfare - No special setting, crash at first startup

System information

  • GPU: GTX 970
  • Driver: 396.45
  • Wine version: 3.13-staging-esync
  • DXVK version: info: DXVK: v0.63

Apitrace file(s)

apitrace_tries.tar.gz
I had to do the apitrace with dxvk, cause the game has another texture related error with wined3d and i have no windows at hand.

Log files

Thx,
Christian

Ddoitsujin maintainer 2018-07-30 github

As we discussed on Discord, the problem is that the game tries to create an SRGB texture with D3D11_BIND_UNORDERED_ACCESS, which is not supported by any Vulkan driver.

This looks like a game bug, because UAV support for SRGB formats is not required, but the game just assumes that it is supported, and Windows drivers do indeed expose such support (although I'm not sure how it works on their end, I'd be surprised if load/store ops actually did the SRGB conversion).

Not sure what to do about this, it would be helpful if someone could get a full apitrace of the game so that I can see how exactly it uses the SRGB image and what kind of views it creates for it.

TTestMode1 2018-08-06 github

According to this video game works - https://www.youtube.com/watch?v=z-9XPzF7MEI

RRiesi 2018-08-07 github

Here is a windows trace of the game. I hope a trace in ultra wide works, since the guy who traced it probably used his ultra wide screen and I forgot that while he traced.

Ddoitsujin maintainer 2018-08-09 github

Thanks for the trace, workaround added in 73c91138db03dc584b1cfeedb8a292146e9cb069.

Nothing extracted yet.