translator: reads of title memory by address share one directory look per block #172
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/172"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from eikkapine/jaxe. Originally posted by mahhnameisjeff on 2026-12-03T14:28:42Z.
Base: origin/amd (
0902398). Independent of the other PRs from this batch.Bumps TRANSLATOR_VERSION 4 -> 5 (the translation of 77 shaders changes).
Programs that read title memory by address (the ray-tracing structure
walks above all) looked each address up in the directory, picked the copy's
view, then read: three dependent memory round trips per read, and a record's
fields are read one load each from one pointer. Now:
Lower::memory_read: a read whose address register pair a look in thesame machine block already served reuses that look for lanes whose
address is in the same 64 KiB page with a copy; other lanes look again
(in a branch). Emptied at each block.
unless the node ends its page.
JAXE_PAGE_REUSE=0(translation listing only, not part of the cachekey) turns it off, to tell which programs it changes.
Measured on RX 6700 XT, ray tracing on: the two structure-walking programs
37.6 -> 22.2 ms per frame (timing runs, JAXE_GPU_TIMING); frame rate after
the load 10.8-12.6 -> 13.0-13.7 fps; with JAXE_PAGE_REUSE=0 the same build
gave 11.7. Keeping looks across dominated blocks was tried and made both
programs slower (more registers live across their loops): not done.
jaxe-shader tests pass (313); the changed programs validate with dxil.dll
and compile on the card. Of 19,098 known shaders 77 change, all compute.
Related: general GPU-bound reports (#142, #130, #87, #108).
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.