The checkerboard-like effect looks a lot like the symptom of a RADV bug that was fixed recently, affected a lot of games and should make it into the 18.0.5 update. Can you test whether this still happens with latest mesa-git?
But there's another issue which may lead to visual bugs (see #406, which also has this problem):
warn: DxbcCompiler: Unhandled VS SV output: DxbcSystemValue::RenderTargetId
Expect a fix when wine gains support for Vulkan 1.1.
Tested it with mesa-git just now (version string reports 18.2.0-devel) but the problem persists. At best the pattern and color are a bit different from before.
Which LLVM version did you use? There are similar issues in Kingdom Come Deliverance with LLVM 6.0 but gone in 7.0.
Anyway, can you please record an apitrace for the game?
LLVM version is 6. I'll see if I can test it using 7 without creating too much of a mess.
I tried creating an API trace but unfortunately the game locks up after a few seconds when running it through apitrace.exe. Thus, I can't get past the main menu.
That's unfortunate, but also means that I won't be able to debug the issue.
With 9ff17b03f24c7a5d0a1825214f1697e5f6e48f1e, the shaders should now compile without warnings, but since RADV doesn't support VK_EXT_shader_viewport_index_layer yet I don't know how well this works out. I'll file a feature request to support the extension.
Can confirm that the DxbcSystemValue::RenderTargetId warning is now gone. It seems radv had VK_EXT_shader_viewport_index_layerenabled back in April, although it didn't get rid of the issues.
I figured out that apitrace doesn't actually lock up the game- it just shows a black screen with only the mouse cursor being visible. I can still click on things and even load the game. Is a trace taken under those conditions still useful to you?
When I tested this title a while back, the frame rate was quite low, like 20-25fps, has that changed?
I'm getting about 20-30 fps, but that's with a Rx 560 at 1440p. If you've got a juicier card you might have more luck now.
Nope, I was getting that with a 1080ti also. I'll check with latest wine and dxvk tomorrow, could be a issue.
@doitsujin
I figured out that apitrace doesn't actually lock up the game- it just shows a black screen with only the mouse cursor being visible. I can still click on things and even load the game. Is a trace taken under those conditions still useful to you (to debug the checkerbox issue)?
re-tested this on latest DXVK and wine-staging, still gets 25fps at low settings 4k. Seems like something is going wrong here because setting to high settings doesn't really change the framerate, nor does the resolution.
(1080ti system)
@jarrard how does this compare to the performance of the native Linux version of the game?
The performance under Linux has now been tested by me and I can say it runs loads better under Linux OpenGL then under DXVK. Not sure what the issue is with DXVK, something slowing it down I guess.
@JuBan1 Does the visual issue still occur with mesa-git?
As for performance being low, nothing I can do without a trace. Even with a trace there's probably nothing I can do in case that game is doing something rather silly (similar to Grim Dawn, which also runs extremely poorly on DXVK because it uses D3D11_USAGE_DYNAMIC for absolutely everything).
no way to work around D3D11 USAGE DYNAMIC is there?
I'll work on getting a apitrace done for you, if for nothing more then completion points :)
Ping?
@JuBan1 Does the visual issue still occur with mesa-git?
Sorry, I didn't see the last mention. I'll test it in the next few days.
It seems to be gone with mesa-git and DXVK 0.62.
I've switched from a Rx 560 to a Rx 570 in the meantime but I doubt the hardware change had anything to do with it. Though I can confirm that the game runs about as fast on both cards, though that's an issue not related to this one.
I'll close this.
Thanks for working on this piece of software. PoE2 already runs about twice as fast as with regular wine.
Description
A few places in Pillars Of Eternity 2 have a blocky visual glitch. This is how it looks like while this is how it ought to look. The individual boxes change color/saturation with every frame, a bit like TV static.
The glitch only shows up in a few places, and I'm almost certain it only appeared after a few hours of playing.
Graphics settings used does not change anything. I tried deleting
~/.cache/mesa_shader_cacheand~/.cache/radv_builtin_shadersas well asRADV_DEBUG=nofastclearsto no avail. I don't have a<wineprefix>/drive_c/users/xyz/Temp/dxvkto remove. Regular wine doesn't show this glitch.System information
Apitrace file(s)
Log files