doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.13k stars 844 forks source link

[d3d11] Wrong color of trees in World of Warships #1668

Closed ernstp closed 2 years ago

ernstp commented 4 years ago

Many of the trees in WoWs have the wrong color. They are often much brighter or just a strange blue-teal color. I think these are billboard style 2d trees. See attached picture. wows

Software information

World of Warships, all versions for the last months including the latest 0.9.5. All Foliage quality settings and all other settings as far as I have found.

System information

Apitrace file(s)

In progress...

Log files

In progress..

ernstp commented 4 years ago

Here's how they should look, from Windows: wows2

ernstp commented 4 years ago

WorldOfWarships64_d3d11.log WorldOfWarships64_dxgi.log

ernstp commented 4 years ago

apitrace from Windows. https://drive.google.com/file/d/1Hsvh1DL23nIO1RM1mgJU-x78_8PWQ7Ie/view?usp=sharing

doitsujin commented 4 years ago

I'm unable to download the trace file, because "You need access".

ernstp commented 4 years ago

Now!

doitsujin commented 4 years ago

Thanks; unfortunately it crashes on replay for some reason, and Renderdoc no longer works with DXVK so I currently have no way to debug this on the Linux side.

ernstp commented 4 years ago

I can try apitrace on Linux perhaps... ?

doitsujin commented 4 years ago

Well my main issue right now is getting renderdoc to work. For some stupid reason it just crashes everything i'm trying to use it with.

FWIW, I have the game installed anyway and can confirm the issue - it also happens with wined3d by the way - but thanks for providing the trace anyway, usually that makes things a lot easier.

ernstp commented 4 years ago

Right, so you can get it right in the port with the Fjords "port" for example. There are some color variations in various maps etc.

doitsujin commented 4 years ago

Works fine on Windows with DXVK (RX 480): 2020 06 16-00 40

Edit: It seems like there's a BC7 texture that somehow turns into a BGRA8 texture on Linux, which means that the color channels are flipped. Weird problem, but this smells like a wine problem somewhere.

ernstp commented 4 years ago

Do you have an idea for how to research this further?

jqadev commented 4 years ago

@doitsujin isn't it related to https://github.com/ValveSoftware/wine/pull/84 ?

doitsujin commented 4 years ago

No, this has nothing to do with swap chain formats but texture formats.

@loathingKernel not really, first thought was that it might be a D3D helper library messing up but I don't see any of those being used here.

Sigtechnica commented 4 years ago

maybe not related but I had crashes , games not starting with wine-staging 5.11 (64-bit). Full reinstall of wine , nvidia driver update, rolled back dxvk (1.6(.1) , 1.7 , recompiled, etc) versions ,no luck, at the end I rolled back to wine-staging 5.10 everything started to work again like a charm.

doitsujin commented 4 years ago

wine is known to have major stability issues lately, due to a massive ongoing ntdll refactor.

ernstp commented 4 years ago

Huh, this is solved for me now! I was running with foliage off for a few weeks so I'm not sure what fixed it really, but there was a big 0.9.6 update today. Anyone can confirm?

Blisto91 commented 2 years ago

Yes this does not seem to be an issue anymore. I have at least not been able to reproduce with any in-game settings in the same scene and going as far back as proton 4.11 (R9 380 radv 21.3)

So i think this issue can also be closed.

Blisto91 commented 2 years ago

@K0bin This one too