mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 03:39:57 -04:00
Translate 40 more shaders, and build the upscaler's compute shaders five times faster in the driver.
The SM86 lowering now takes MEMBAR (as Maxwell MEMBAR.GL), drops ERRBAR, takes F2I of an immediate and MATCH.ALL.U64, and finds a switch's jump table bound past the BSSY the compiler puts between the IMNMX and the shift: three vertex shaders, one of them drawn in Kokiri Forest, were skipped for it. A task program and the mesh programs it feeds whose payload size field reads 0 (it counts 256-byte units) get one unit. Of the 42,177 programs, 31 still fail, all modes whose meaning is not certain. Translator patch 0035 inlines SHFL.IDX over the whole warp (mask 0x1f) on a 32-lane host as the subgroup shuffle, instead of a call to the general shuffle helper. The tensor lowering shuffles thousands of times per program and the driver inlined the helper at each call: a mid-size upscaler shader built in 185 s before and in 34 s now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,8 +99,8 @@ def prepare_sources() -> Path:
|
||||
for junk in list(src.glob("src/*/obj")) + list(src.glob("src/*/bin")):
|
||||
shutil.rmtree(junk)
|
||||
patches = sorted((XLATE / "patches").glob("*.patch"))
|
||||
if len(patches) != 33:
|
||||
sys.exit(f"expected 33 patches, found {len(patches)}")
|
||||
if len(patches) != 34:
|
||||
sys.exit(f"expected 34 patches, found {len(patches)}")
|
||||
for patch in patches:
|
||||
# git apply works outside a repository when given a directory; --check first so a failure names the patch.
|
||||
for extra in (["--check"], []):
|
||||
|
||||
Reference in New Issue
Block a user