Shader opt test: neg_uav_load_between_reads mislabelled negative (test fails on .30.03, CI doesn't run it) #4562
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by gbmrrr on 2026-11-30T22:26:44Z.
Summary
The test case
neg_uav_load_between_readsinsplit_lds_wave32_read_after_read_barrier_coalescing_and_paritydeclared itself a "negative" — expecting bothBARRIERSandALLmasks to keep the unoptimised barrier patternBWBRBRBWBR. Measurement on hardware (RTX 5070 Ti) and WARP shows:BWBRBRBWBRBWBRBRBWBRBWBRRBWBR[t ^ 32, t, t + 25]The UAV
buffer_load_dwordreads memory the block's LDS does not alias, so it invalidates nothing and the barrier between the two LDS reads is a redundant read-after-read pair.BARRIERSalone cannot prove the loads are loop-invariant without the preceding passes (LOADS,LICM,FACTS); only the combinedALLmask reaches the optimised pattern.Fix (already in local commit 33542969)
uav_load_between_reads(not a negative)BARRIERS == unoptwhile requiringALL == opt_patfor this caseAll 536 shader tests now pass (was 535 passed, 1 failed). The upstream
.30.03tag has the same bug.Bonus: CI doesn't run the test suite
The workflows that ran on
.30.03are onlyspam,title-labels,game-requests— no test workflow executes. That's why this deterministic failure (3/3 runs) wasn't caught.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T22:26:54Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gbmrrr on 2026-11-30T23:13:03Z.
Correction, and the logs
First, a correction to the last paragraph of my report. I wrote "CI doesn't run the test suite". That is wrong as stated.
.github/workflows/ci.ymlexists inv2026.11.30.03and does run it:The accurate statement is narrower:
push:there has notags:filter, so a tag push runs onlyspam,needs-logs,title-labelsandgame-requests.v2026.11.30.03was tagged without the suite ever running against it, which is how it shipped with a redvictory-shadertest. Branch pushes and PRs are covered; releases are not.The failure is deterministic, not a flake
Three consecutive isolated runs, same assertion every time:
test result: FAILED. 0 passed; 1 failedon every run,0.60s, no timing involved.Machine
GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.40
Windows: 11 Home Single Language, build 26300, 26H2
Rust: 1.98.1,
x86_64-pc-windows-msvcThe
eprintln!lines above are from the test's own output, so the hardware path (hw) and WARP both reached the pattern dump. The failure is in the pattern comparison, before any dispatch:What the numbers say the fix is
neg_uav_load_between_readsexpectsBWBRBRBWBRfor both masks, treating it as a case the pass must not touch. But:BWBRBRBWBRBWBRBRBWBR(unchanged)BWBRRBWBR(one barrier fewer)BARRIERSalone leaves it alone; onlyALL- which bringsLOADS,LICMandFACTS- reaches the shorter pattern. So the case is not a negative at all: a UAVbuffer_load_dwordreads memory the block's LDS does not alias, so it invalidates nothing, and the barrier between the two LDS reads is exactly the redundant read-after-read pairBARRIERSis meant to remove.BARRIERScannot see it alone because the loads have to be hoisted first.The other five cases in the same test behave, so this is one wrong expectation in the table, not a broken pass. Locally I renamed the case to
uav_load_between_reads, corrected the note, and made the check acceptBARRIERS == unoptwhile still requiringALL == opt_patfor this case.536 passed; 0 failedafterwards.Crash log
None.
%LOCALAPPDATA%\VIctory\data\7952987A\crashes.logdoes not exist and there is no*.crash.logundertemp\- this is a test failure, not a crash.Full play log available on request; it is 4.6 MB and not relevant to this one.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gbmrrr on 2026-12-01T00:00:58Z.
Resolved upstream already — closing this one myself rather than leaving it open with a
needs-logslabel, because it never needed a run log: it is a unit-test expectation, and%LOCALAPPDATA%\VIctory\data\7952987A\crashes.logdoes not exist here in any case.Fixed by
6060bc47("Shader tests: the split-LDS UAV-load negative reads its load", Lyrnc). That commit's diagnosis is better than the one in my report, and I want to say so plainly:I said
BARRIERSalone could not reach the pattern because it needsLOADS/LICM/FACTSto hoist the loads first. That was wrong. The real cause is that the case loadsv8and never reads it, soDEAD— which runs insideoptimise's rounds, not under theBARRIERSflag — drops the dead load on round one, and round two then correctly sees two adjacent reads and removes the barrier. Without the load the case isadjacent_rar, which the same test already expects to becomeBWBRRBWBR.So my local fix was the weaker one: I relaxed the assertion to accept
BARRIERS == unoptwhile requiringALL == opt_pat, which would have frozen a test that no longer tested what its name says.6060bc47keeps the case honest by making the load live (v6 = v8 + v6before the store), which is the correct repair. Dropping my version.The one part of my report that still stands: the tag
v2026.11.30.03shipped with this failing becausepush:inci.ymlhas notags:filter. Branch and PR runs do execute the suite.Thanks — and sorry for the extra round trip on a test that was already understood.