Repository navigation
Conversation
A vertex or geometry program that carries a UAV (root UAVs, or the written-pages and view-mark bitmaps) now sets DXIL shader flag 16 and the matching SFI0 feature bit 0x4. The validator recomputes that flag from the resources and rejected 867 programs on main since cd94d35 with 'Flags must match usage'. Patch by zed6000, reported and measured in Marvisak#1973.
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
Offline measurement on a retail dump: +867, 0 lost, the same set as #1989I merged head e3cefe5 onto
All 867 failed with "Flags must match usage" on AI-assisted (Claude Code). No shader names or data are included, per the asset policy. |
|
Closing this in favour of #1989 (@BastienRodz), which is the same flag fix but strictly better, and it is green and mergeable:
The corpus numbers from #1973 apply to both: For #1989: |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed / 2 ignored. UAVsAtEveryStage declared for vertex/geometry programs with UAVs. Note: overlaps with #1989 (same UAVsAtEveryStage declaration, 2 files vs 1) — whichever lands second must reconcile; both pass independently.
Closes #1973.
Problem
Since
cd94d35the validator rejects 867 vertex programs with "Flags must match usage". The validator recomputes the DXIL shader flags from the module's resources, and a vertex or geometry program here can carry UAVs (root UAVs, or the written-pages/view-mark bitmaps the converter binds for memory writes) without the module declaringUAVsAtEveryStage(shader flag 16). The recomputed flags then differ from the ones indx.shaderFlags.Change
crates/victory-shader/src/emit/shader.rs:flags::UAVS_AT_EVERY_STAGE(1 << 16);memory_dirty,view_marks,view_writes);SFI0feature bit0x4.This is zed6000's tested patch from #1973, unchanged in behaviour; I only split the comment and rebased it onto
mainat940d32f.Verification
zed6000 on an RX 7900 XTX (
940d32f+ patch vs940d32f):940d32fccfb029(beforecd94d35)cargo test -p victory-shader --lib: 247 passed, 0 failed there.On my RX 7800 XT host (Windows 10 19045, driver 32.0.32029.2010) the same command gives 172 passed, 75 failed, and every failure is the same environment limit, not this change:
no SM 6.6 hardware device (the device supports SM 0x65 only)/no SM 6.6 warp device (… SM 0x62 only). Windows 10 reports SM 6.5 for this adapter, so the GPU probe suites cannot create a device at all; they fail identically on unpatchedmain. The CPU-only emission tests (the ones that build and validate the metadata this patch changes) all pass.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 1 file ok.I could not re-run the 867-program count here because it needs a device that accepts the wave64/SM 6.6 modules; that measurement stands on zed6000's run.