Repository navigation
fix(kyty): serve the named walks of a shader that also walks an untraced tree - #372
Conversation
…ced tree DeriveOracleWalks refused a whole program when any intersection lay outside every walk over a named TLAS. A shader with one walk over a named header and another over a TLAS pointer loaded from memory was therefore refused, and both walks ran empty. Only a program with no walk over a named TLAS is refused now. The walks over a named TLAS are answered from the host query; intersections outside them keep running empty, as before.
|
@claude Review |
|
I checked the diff. The per-site refusal is replaced by a refusal only when no top-level walk over a named TLAS exists. The new |
|
Thanks for the fix and the regression test. The patch applies cleanly on the multi-TLAS base. The named walk uses the host query and the walk through the untraced pointer stays empty. In-game rendering still needs verification. Merged into AnyKyty in 17da676. |
What
Source derivation refused a whole compute program when any of its intersections lay outside every walk over a named TLAS. Some shaders unroll two copies of a walk: one over a TLAS header from user data, one over a TLAS pointer loaded from memory, which the derivation cannot name. The second copy made the derivation refuse the first, so both ran empty.
Now only a program with no walk over a named TLAS is refused. Walks over a named TLAS are answered from the host query. Intersections outside them are marked empty by the same final pass as before, so their handling doesn't change.
Tested
Arch Linux (CachyOS), GTA VI (PPSA38500) pipeline cache, offline with
kyty_rt_probe:5d64274527a66d21wave32, host / empty5d64274527a66d21wave64, host / empty5d64)UntracedWalk()kyty_shim_rt_*tests,check_conventions.pyThe 3
5d64intersections that stay empty read their TLAS through a pointer loaded from memory.UntracedWalk()builds one walk over a named header and one over a header loaded from memory, and checks that the first is answered from the host query and the second stays empty. AMaskedvariant of the test walk's descriptor high word mirrors the mask the real shader applies.Not tested in game.
Programs found only in the code cache have no recorded dispatch inputs, and the survey compiles them at both wave sizes. Reading each program's wave size from its code (the width of the instructions that write
exec), the 12 manifest programs are wave32, as the manifest records, and the 56 code-only programs split into 43 wave32 and 13 wave64;5d64is wave64 code. Counting each program once at its own wave size:Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)