#asahi-gpu · 2026-08-26 01:47
waltmckoh wow huh it is vulkan#asahi-gpu · 2026-08-26 00:27
waltmckIt's using DXVK#asahi-gpu · 2026-08-26 00:27
waltmckalyssa: this is actually a WINE game, I'm honestly not sure what proton does besides wrap WINE#asahi-gpu · 2026-08-25 21:47
waltmckopticron: not that I could find, beyond patching the binary (which I am considering)#asahi-gpu · 2026-08-25 21:46
waltmckJamesCalligeros[m]: yeah I had to do something else so I stopped it. will run it later when I have time#asahi-gpu · 2026-08-25 20:02
waltmckprobably I'll just keep running my local patch with the limit raised since this shouldn't be upstreamed#asahi-gpu · 2026-08-25 20:01
waltmckI don't think I've ever seen it use more than 32K queries at once, it just starts a query pool that is massive#asahi-gpu · 2026-08-25 20:00
waltmckbut yeah it sounds like the driver is doing the "correct" behavior and NMS is just not handling it well#asahi-gpu · 2026-08-25 19:59
waltmckvisually, no mans sky looks completely fine with the limit raised and looks completely broken with it left as is#asahi-gpu · 2026-08-25 19:59
waltmckhuh okay. I'll do some more testing and see if it breaks anything#asahi-gpu · 2026-08-25 19:58
waltmckhaven't finished running*#asahi-gpu · 2026-08-25 19:58
waltmckalyssa: very interesting, thank you. What is expected to happen if I just raise the limit anyway? Everything seems to work fine, but I haven't running the vulkan conformance tests#asahi-gpu · 2026-08-25 04:35
waltmckI'm running it now, it is in nixpkgs so not too much trouble#asahi-gpu · 2026-08-25 04:05
waltmckyou mean https://github.com/KhronosGroup/VK-GL-CTS ?#asahi-gpu · 2026-08-25 04:05
waltmckI did not run the cts, I can do that#asahi-gpu · 2026-08-25 03:37
waltmckwould you accept a patch that raises the limit?#asahi-gpu · 2026-08-25 03:37
waltmckwith the current limit that takes 256KiB, with my 1M limit it is 8MiB#asahi-gpu · 2026-08-25 03:36
waltmckso you need to allocate the entire table up front regardless of how much is actually used#asahi-gpu · 2026-08-25 03:36
waltmcksee https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.1.5/src/asahi/vulkan/hk_descriptor_table.c#L35#asahi-gpu · 2026-08-25 03:36
waltmckI don't really understand this stuff very well, but I think that the issue is that on honeykrisp the buffer object table can't grow#asahi-gpu · 2026-08-25 03:34
waltmckchaos_princess: increasing the occlusion query limit to 1M increases the bitmap from 4KiB to 128KiB. So not a very significant change#asahi-gpu · 2026-08-24 18:28
waltmckDo you own No Man's Sky on steam or gog? I can give instructions on how to reproducibly run it from a nix derivation#asahi-gpu · 2026-08-24 18:27
waltmckdoes apple silicon require different data structurs that have worse scaling than these other GPUs? I guess that might make sense#asahi-gpu · 2026-08-24 18:27
waltmckI guess this is in the weeds, but in that case how come there is no limit in any of the other drivers I could find?#asahi-gpu · 2026-08-24 18:13
waltmckI'm honestly not sure why there is such a small limit on occlusion queries in honeykrisp considering it seems to run fine with it increased#asahi-gpu · 2026-08-24 18:13
waltmckLet me verify everything and I'll publish the game (packaged with Nix). You should be able to run it and test it yourself then if you're curious#asahi-gpu · 2026-08-24 18:12
waltmckto -> go#asahi-gpu · 2026-08-24 18:12
waltmckIf I patch the driver to increase AGX_MAX_OCCLUSION_QUERIES to 1M, the artifacts to away#asahi-gpu · 2026-08-24 18:11
waltmckOK, the reason for the crash was actually something else. The game runs without increasing AGX_MAX_OCCLUSION_QUERIES, but there are flickering artifacts#asahi-gpu · 2026-08-24 16:35
waltmckIt looks like this is pretty unusual, the other drivers I looked at (radv, anv, nvk, turnip) don't have any limit on the number of occlusion queries#asahi-gpu · 2026-08-24 16:21
waltmckI'm not using muvm but I don't think that should make a difference (virgl should inherit the error from the host driver)#asahi-gpu · 2026-08-24 16:20
waltmckOne thing I'm kind of confused about is that there is a report on reddit (https://old.reddit.com/r/AsahiLinux/comments/1ll30ey/controller_cant_be_used_in_steam_games/) of getting NMS running. So either that is incorrect or they hardcoded 16-bit query addresses in some update in the last year#asahi-gpu · 2026-08-24 16:16
waltmckYeah I'm tryng that right now (rebuilding mesa). I suspect that there must be some reason for this limit (maybe the hardware only supports 15 bit identifiers or something) in which case there might be issues when the game tries to use more than 32768 queries, but I'll test it empirically#asahi-gpu · 2026-08-24 16:11
waltmckHave you gotten No Man's Sky to run? For me (under WINE/FEX) it calls `vkCreateQueryPool(queryType = VK_QUERY_TYPE_OCCLUSION, queryCount = 65536)` which fails with `VK_ERROR_OUT_OF_DEVICE_MEMORY`. This makes sense because it looks like on honeykrisp `AGX_MAX_OCCLUSION_QUERIES = 32768`.