Repository navigation
Conversation
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
Merged onto main 90228a7 and ran No change: every failure count is the same as main, and no new reason appears. So no regression in translation. What this PR changes at run time isn't covered by this check. |
|
Three more inputs change the translation but aren't in the cache key. That's true on
This PR and #147 both change how the cache key is built in Related: this PR also addresses the stale-cache explanation in #75, where a cache filled without the host's 32-lane setting serves I found all of this by reading the code; I haven't built or run it. Written with an AI assistant (Claude). |
|
@ericomeehan I reproduced the missing cache inputs in separate Windows processes and updated this branch in 7eebb26. The cache now distinguishes the default local-wave behavior from One additional case matters for integration with #544. The translator checks whether each strict variable exists, so even an empty value enables it. Adding their names to the old serialization still produced the same key for strictly enabled (empty) and unset. The new regression failed on that negative control and on the previous #35 head. With the fix the full Windows GPU suite on WARP passed 119 tests, with one ignored. AI-assisted. |
…ns (fxceless#35) (cherry picked from commit fe5139303a66fdaf46c515b59cd63bf944909216)
The translator can emit different DXIL for the same input depending on the adapter’s wave width. The disk cache used the same key for both outputs. With a shared cache, a shader compiled on a 64-lane adapter could be returned on a 32-lane adapter that cannot create its pipeline.
I confirmed the distinction with a hand-built wave reduction. The two outputs validate with Microsoft’s DXIL validator and declare different required widths in PSV0. This change includes the translator’s effective wave32 setting in the cache key, bumps the converter version, and still reuses entries across adapters that choose the same lowering mode.
The regression reopens the cache four times, alternating modes. On the old key the second lookup returned the first mode’s output. With the fix each mode compiles once and subsequent lookups return the correct entry.
Verification on
90228a7plus this patch:AI-assisted. This fixes cache reuse across adapters. Our fresh-cache RTX 5070 run cannot demonstrate an in-game visual change from this patch.