wine icon indicating copy to clipboard operation
wine copied to clipboard

Implement `D3DKMTEnumAdapters2` and `D3DKMTQueryAdapterInfo` (for `WDDM_2_7_CAPS`)

Open liam-middlebrook opened this issue 1 year ago • 11 comments

Implementations needed to support querying a D3DKMT adapter for WDDM_2_7_CAPS information. This work has partial overlap with commits which are already in upstream wine; individual commit messages contain reasoning for why they exist rather than cherry-picking patches from upstream.

Most notably, the third commit is the only commit which would need to be carried over in a rebase on-top of upstream Wine. It would need to be slightly re-written, some more notes in the commit message.

Hopefully the additional notes on change integration are helpful for you @ivyl

liam-middlebrook avatar Oct 15 '24 18:10 liam-middlebrook

Not sure where to Report this but doing it here Black myth wukong starts with dlss FG enabled but than if you turn it off it refuses to turn back on and says this image

Fast edit thanks for not deleting my report unlike on that other repo ...

ryzendew avatar Oct 17 '24 21:10 ryzendew

Not sure where to Report this but doing it here Black myth wukong starts with dlss FG enabled but than if you turn it off it refuses to turn back on and says this !

For me it started with FG off and I can't turn it on, so it's basically the same thing I mentioned here. But once DLSS-FG landed I think it's better to put an issue for each game, the HAGS issue must be resolved tho' since more games might depend on it.

shelterx avatar Oct 18 '24 06:10 shelterx

Hmm having HAGS exposed seem to cause stutter in Cyberpunk 2077 even if FG isn't enabled.

shelterx avatar Oct 19 '24 18:10 shelterx

I don't know how useful it is to mention here, but I tried the new Proton Experimental release and while FG works well in Cyberpunk, I cannot turn it on in Everspace 2 because the game reports that HAGS is not enabled. As I understand it, this PR is present in this Proton release so it ought to work.

philipl avatar Nov 13 '24 06:11 philipl

I don't know how useful it is to mention here, but I tried the new Proton Experimental release and while FG works well in Cyberpunk, I cannot turn it on in Everspace 2 because the game reports that HAGS is not enabled. As I understand it, this PR is present in this Proton release so it ought to work.

For the record, this seems to be specific to multi-GPU scenarios. I have the Intel iGPU active in the system, and it seems like HAGS detection failed when I was hiding the Intel GPU from Vulkan (due to the game crashing when it was visible). The developers gave me a work around to avoid hiding it and then detection worked. I assume, in some very hand wavy way that hiding the iGPU from the game while the system is able to see it leads to some kind of mismatch in device identification when querying the device properties in this change, but I'm not in a position to say precisely what's going on.

philipl avatar Dec 03 '24 18:12 philipl

I am using OptiScaler + Dlssg to FSRG mode, but I can't enable frame gen, I tried enabling it from setting even though it shows frame gen enable but it's not enable. Any workaround for this? I have 30x series card :(

image

Syntist avatar Mar 22 '25 12:03 Syntist

Replying to https://github.com/ValveSoftware/wine/pull/259#issuecomment-2745245759

Use hags.patch with wine tkg. I can share my last wine tkg proton (10.3). Reference: https://github.com/ValveSoftware/Proton/issues/7361

gilvbp avatar Mar 23 '25 11:03 gilvbp

@gilvbp sure would be great if you can thanks

Syntist avatar Mar 23 '25 12:03 Syntist

@gilvbp sure would be great if you can thanks

here it's : https://www.dropbox.com/scl/fi/4qt69ocyyj2ju5yhlhwhv/proton_tkg_10.3.r0.g946648d1.tar.xz?rlkey=lg8vfq0gfb1k05xeaueb42m5m&st=1a28g9rz&dl=0

If you need instructions, ref: https://github.com/ValveSoftware/Proton/issues/7361#issuecomment-1891017248

Enjoy, FG!

gilvbp avatar Mar 23 '25 13:03 gilvbp

@gilvbp sure would be great if you can thanks

here it's : https://www.dropbox.com/scl/fi/4qt69ocyyj2ju5yhlhwhv/proton_tkg_10.3.r0.g946648d1.tar.xz?rlkey=lg8vfq0gfb1k05xeaueb42m5m&st=1a28g9rz&dl=0

If you need instructions, ref: ValveSoftware/Proton#7361 (comment)

Enjoy, FG!

Thanks I'll try Also possible you can share me the patch too? https://github.com/Syntist/proton-tkg-builder/blob/master/patches/hags-0001.mypatch

Is this the patch? Because I am also trying to build my own TKG.

Syntist avatar Mar 23 '25 14:03 Syntist

@gilvbp sure would be great if you can thanks

here it's : https://www.dropbox.com/scl/fi/4qt69ocyyj2ju5yhlhwhv/proton_tkg_10.3.r0.g946648d1.tar.xz?rlkey=lg8vfq0gfb1k05xeaueb42m5m&st=1a28g9rz&dl=0 If you need instructions, ref: ValveSoftware/Proton#7361 (comment) Enjoy, FG!

Thanks I'll try Also possible you can share me the patch too? https://github.com/Syntist/proton-tkg-builder/blob/master/patches/hags-0001.mypatch

Is this the patch? Because I am also trying to build my own TKG.

yes, although above 10.3 changed a few lines: check here https://github.com/gilvbp/wine-tkg-git/blob/master/wine-tkg-git/wine-tkg-userpatches/wine-hags-spoof.mypatch

gilvbp avatar Mar 23 '25 19:03 gilvbp