protonscr

[d3d9] Texture artifacts in Everquest 2

dxvkclosed d3d9
doitsujin/dxvk#1832 · opened 2020-11-24 by HK47196 · updated 2022-02-19 · 5 comments · github
HHK47196 2020-11-24 github

Some textures in Everquest 2 render incorrectly as shown in the screenshots attached at the bottom.

Software information

Everquest 2, any settings.

System information

  • GPU: Nvidia GTX 970
  • Driver: 455.46.01
  • Wine version: wine-staging 5.22/wine-staging 5.11
  • DXVK version: 1.7.2

Apitrace file(s)

The trace was captured using Wine-staging 5.11 as the newest wine versions run the game very slowly when using wined3d.

Log files

Example of the issue(clothing on the female character in the mid-left):
1
I thought it was black pixels at first, but using the in-game command to scale the framebuffer I noticed that the problem textures became transparent:
2

It appears to be strictly limited to some clothing textures.

Mmisyltoad 2020-11-24 github

Thanks for the report, will take a look :-)

Mmisyltoad 2020-11-24 github

Doesn't happen on RADV or AMDVLK.

This is caused by the alpha emitted in the pixel shader for that lady's clothes.

In the vertex shader, changing the output vertex color to 1,1,1,1 changes nothing.
In the pixel shader, changing the recieved vertex color to 1,1,1,1 fixes it.
Removing centroid changes nothing.

This is truly bizzare and I feel like it may be a driver bug; but this game is so simple and we're not doing anything crazy so I feel it has to be on our end...

HHK47196 2020-11-24 github

Just realized this happens with wined3d too. Because of the bad performance I never used it beyond the quick apitrace and alt+f4 so I didn't realize it. This might not be a DXVK bug?

But when using wined3d if I disable GLSL shaders and use ARB instead with a compatibility context the issue goes away. So, maybe it's a shader issue that's present in both wined3d and DXVK? Or just a nvidia driver bug, as you said.

FWIW, I've tried a few different Nvidia driver versions(dev, 455, 450) and the issue persisted.

Mmisyltoad 2020-11-26 github

Should be fixed in master as of bbfd6d06908d3545a11bb8f322300b4e724851cb

SSturmlocke86 2022-02-19 github

Should be fixed in master as of bbfd6d0

Hey Josh, I have a question about a different issue related to EQ2. I can't open a dxvk bug report for this, because it's a bug that can be reproduced on Windows too, but I thought you might have the knowledge to further diagnose the glitch. Tried reaching out to you via the e-mail on your Github profile, but then realised it might just be a placeholder, lol. How can I get in touch with you? Cheers, Alex

Nothing extracted yet.