https://bugs.winehq.org/show_bug.cgi?id=37711
Bug ID: 37711 Summary: payday 2 broken lighting Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: davyaxel@free.fr Distribution: ---
On wine/radeonsi, payday 2 has broken lighting, and objects have no shadows. This doesn't make the game unplayable. It's just objects have no shadows. Gallium Nine has light working.
While trying to fix a bug with Gallium Nine textures of some parts of the road, I tested different configuration of input channels / default values for empty channels for the textures used by the game.
In particular for depth stencil formats, like D3DFMT_D24S8 used by the game, we have the depth on r, the stencil on g, and b=0 a=1
I don't remember what different combinations I tried for this format, but basically when different from that, I got broken lights exactly like wine.
Which makes me think wine probably doesn't handle this format correctly.
If you want to reproduce we have a server with the trace (too big to put here - taken with apitrace), come on our channel (#d3d9) to ask for access.