04:35tiredchiku[d]: magic_rb[d]: there's also stuff in dxvk-nvapi for NVK
04:37tiredchiku[d]: magic_rb[d]: saancreed[d]
07:02gfxstrand[d]: redsheep[d]: Not sure. I'm not even remembering which branch at the moment.
07:03redsheep[d]: gfxstrand[d]: Ran a discord search, looks like it was this one
07:05gfxstrand[d]: Yeah, that one is worth a try
09:40saancreed[d]: tiredchiku[d]: As usual, logs please 🙂
10:08magic_rb[d]: saancreed[d]: I did attach all the logs i have, its the paste.tomsmeding link
10:08magic_rb[d]: If i can somehow get more i will, but dunno how
10:09saancreed[d]: `PROTON_LOG=1 DXVK_NVAPI_LOG_LEVEL=trace %command%` in Steam's launch options.
10:09saancreed[d]: Then you'll have a `steam-$APPID.log` file in your home dir.
10:13magic_rb[d]: Okay cool will get that, ill also open the bug report on protons side and attach it. Didnt have time so far, but in the evening i will
19:15magic_rb[d]: saancreed[d]: https://gist.github.com/MagicRB/24bc5aeaba70a6185dc22d48d03d9aac
20:19saancreed[d]: I think it's a game bug?
20:19saancreed[d]: First, we have
20:19saancreed[d]: 643.825:0134:0138:trace:nvapi64:NvAPI_D3D11_IsFatbinPTXSupported (ptr=0x14eeb68, ptr=0x34391ab8)
20:19saancreed[d]: 643.825:0134:0138:info:nvapi64:<-NvAPI_D3D11_IsFatbinPTXSupported(Unsupported): OK
20:20saancreed[d]: But then it tries to create a cubin shader anyway?
20:20saancreed[d]: 643.826:0134:0138:trace:nvapi64:NvAPI_D3D11_CreateCubinComputeShaderWithName (ptr=0x14eeb68, ptr=0x6ffff70e0b00, 3496, 16, 16, 1, ptr=0x6ffff6fde9a8, ptr=0x75716e0)
20:20saancreed[d]: 643.825:0134:0138:warn:seh:dispatch_exception backtrace: --- Exception 0xc0000005.
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception code=c0000005 flags=0 addr=0000000000000000 ip=0
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception info[0]=0000000000000008
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception info[1]=0000000000000000
20:20saancreed[d]: 643.825:0134:0138:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception rax=00000000014df240 rbx=0000000000000010 rcx=0000000001d1db10 rdx=0000000000b9d3d0
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception rsi=0000000000000010 rdi=0000000000b9d6f0 rbp=0000000000b9d3f0 rsp=0000000000b9d368
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception r8=0000000000000000 r9=0000000000b9d3c0 r10=0000000000000000 r11=061ba62ccf97a4bc
20:20saancreed[d]: 643.825:0134:0138:trace:seh:dispatch_exception r12=00006ffff70e0b00 r13=00006ffff70e0b00 r14=0000000000000da8 r15=0000000001d1db10
20:20saancreed[d]: …
20:20saancreed[d]: 643.825:0134:0138:warn:seh:virtual_unwind backtrace: 00006FFFFD1747B6: L"d3d11.dll" + 00000000000947B6.
20:21saancreed[d]: Please try `DXVK_NVAPI_DISABLE_ENTRYPOINTS=NvAPI_D3D11_CreateCubinComputeShaderWithName %command%`.
20:22saancreed[d]: Or `DXVK_NVAPI_GPU_ARCH=GP100 %command%` I guess.
20:41HdkR: lol. "It's NVIDIA so it must support CUDA"
20:47karolherbst[d]: maybe we should fix that lol
21:40mhenning[d]: saancreed[d]: Right, sounds like a game bug to me. Since PROTON_HIDE_NVIDIA_GPU=1 fixes it I'm imagining proton can add a workaround to set that by default for this game?
21:43saancreed[d]: How would such a workaround be applied? So far Proton has managed to skillfully avoid adding workarounds only when a driver/GPU from specific vendor is detected.
21:44saancreed[d]: As in, I believe detecting the active driver is something Proton very much doesn't want to be doing.
21:45mhenning[d]: Ah, maybe I misunderstood - I thought proton had done workarounds like that in the past
21:46mhenning[d]: Maybe it's actually a mesa-level driconf workaround that I'm thinking of
21:47saancreed[d]: As far as I know, Proton doesn't do that… otherwise we wouldn't have dozens of reports of NVAPI causing crashes on systems without Nvidia GPUs. Proton could just disable the library from loading in such cases but it doesn't.
21:48saancreed[d]: But there's a good chance we can workaround it in dxvk-nvapi.
21:49saancreed[d]: https://cdn.discordapp.com/attachments/1034184951790305330/1338990378573107221/ensure-ptx-supported.diff?ex=67ad1777&is=67abc5f7&hm=434a417a6bd9405f783ccff0b0dd83a70872fb2bcc8ee5ecc5d21ea0a93cf691&
21:49saancreed[d]: Like so, I guess?
21:55mhenning[d]: Maybe? Turns out I was actually thinking of this setting in mesa: https://gitlab.freedesktop.org/mesa/mesa/-/blob/513ba040fc3d44ec07b50e0db31f60c7e7d7907f/src/util/00-mesa-defaults.conf#L1337
21:56mhenning[d]: So we could probably do that for deep rock galactic and see if it fixes it
21:57saancreed[d]: Sure, that will probably do it.
21:57saancreed[d]: Would be nice to keep it in mind and consider reverting it if (when?) NVK gets PTX support.
21:58mhenning[d]: Yeah, we can add a comment
23:03mhenning[d]: magic_rb[d]: Could you test https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33502 when you get a chance?
23:05magic_rb[d]: mhenning[d]: will test tomorrow, gotta recompile mesa which will take a bit :)
23:05magic_rb[d]: (im on nixos so its a bit harder)