Just taking a look visually at the app i think it utilizes partial presentation. d3d9.shaderModel = 1 in a config also works around the issue.
By my understanding from reading #2749, it seems that setting d3d9.shaderModel = 1 makes WPF fall back to software rendering. In that case, this would still be a bug?
I would also like to note that the menus seem to be separate windows since they can extend past the edge of the main window, but I'm not sure.
By my understanding from reading #2749, it seems that setting d3d9.shaderModel = 1 makes WPF fall back to software rendering. In that case, this would still be a bug?
That's correct and there can still be a bug. DotnetSpy uses WPF and that has interesting approaches to a lot of things.
I'll take a look.
Thank you!
Fyi dnSpy will be disabling hardware acceleration on wine as a workaround whenever this commit https://github.com/dnSpyEx/dnSpy/commit/f20c00583c15d91214dee7e97e4f680a48e891a5 lands in a release.
But if the underlying issue would be fixed, that would be great.
Nothing extracted yet.
When running dnSpy (https://github.com/dnSpyEx/dnSpy/releases/tag/v6.5.1) in Wine using dxvk, the menubar menus and the right-click menus are completely black. This also happens with wined3d when using the default opengl renderer, but setting
HKEY_CURRENT_USER\Software\Wine\Direct3D\renderertogdi(withwinetricks renderer=gdi) fixes the problem. I'm not sure if this is a dxvk issue, I apologize if not.wined3d with renderer=gdi:

dxvk (and wined3d with default renderer):

Software information
dnSpy v6.5.1 on dotnet core 8.0.624.26715 (WPF)
System information
Apitrace file(s)
apitrace said "Rendered 0 frames in 0.197544 secs, average of 0 fps" when attempting replay. Not sure if this is supposed to happen.
dnSpy.trace
Log files
out.log