Shaders: cd94d35 costs 867 vertex programs to \Flags must match usage\ (24,785 validated to 23,918) #1987
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1987
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?
@fiestorra on GitHub · 2026-11-25 02:22 UTC · original
The view-mark commit costs 867 vertex programs: from 24,785 validated to 23,918, all of them
Vs, all withFlags must match usageMeasured with the offline census on this machine, same local 1.0.2.1 shader archive each time,
victory translate --validate --list --jobs 10, validator = SDK 10.0.26100dxil.dll(1.9, the onedefault_pathpicks here):Flags must match usageccfb029(parent)cd94d35"shaders mark the pages they write through views"940d32f(its child,maintoday)So the regression is bisected to
cd94d35and it costs 867 programs (the first line of the error list is the program itself). Every one of them is a vertex shader:867 ×
Vs, no other stage.Why I think it is the marking, not the shaders.
cd94d35is the commit that has shaders mark the pages they write through buffer views, and its host side binds two extra root UAVs for that (VIEW_MARKS,VIEW_WRITESinMEMORY_SPACE,emit/host.rs). A vertex program whose DXIL now writes a UAV but whose container's flags/PSV do not declare UAV usage is exactly the shape the validator's "Flags must match usage" names. It would not be the first: this same commit changes what a translated module uses without necessarily changing what it declares.What I have not done: I have not read the writer side far enough to point at the line that sets the flags, and I have not tried a fix — the marking is one day old and whoever wrote it knows which of the two ends is easier to change (declare the UAV usage in the flags and PSV, or not mark pages from the vertex stage). What I can say is that a fix is measurable in about two minutes with the command above, and that 24,785 is the number to get back to.
Reproduce (no game data leaves the machine; the counts are the only thing in a report):
on
ccfb029and oncd94d35.One caveat worth stating: this is the SDK validator 1.9. The 1.7 validator that #1945 describes rejects a fifth of the corpus for its own reasons (PSV0 rebuilding), so a report from a machine with that one will not show this regression clearly — the validator's version matters and is now printed by
translate --validate.No game data is involved: counts, stage letters and program names.
Written with an AI assistant.
@BastienRodz on GitHub · 2026-11-25 02:23 UTC · original
Same as #1973, opened a few minutes earlier, which I've taken: missing
UAVsAtEveryStagenow thatcd94d35gives vertex programs a UAV store. The fix is in progress there; your offline recount would be welcome on its PR.@fiestorra on GitHub · 2026-11-25 02:27 UTC · original
Narrowed with one more measurement: it is the marking, and turning it off restores all 24,785
Same census, same machine, same archive, same validator (SDK 10.0.26100, 1.9), only the option changed —
emit::Options { view_marks: false }instead oftrueinapps/victory/src/translate.rs:571:Flags must match usageccfb029(before the marking)940d32f(main, marking on)940d32fwithview_marks: falseSo the 867 programs are not a property of the shaders, of the corpus or of the validator: they are what the write-marking emission does to vertex programs. Turning the marking off puts the corpus exactly back where the parent commit had it, to the program.
That is as far as a measurement can take it without choosing between the two fixes, and both are now visible from here:
VIEW_WRITES,u1inMEMORY_SPACE) while the container's flags/PSV for a vertex shader do not say so. Compute, pixel and mesh programs survive the same emission, which is a hint that what is missing is specific to the vertex stage's PSV rather than the flags in general.copy_back_marksloses for vertex writes.I am not choosing between them: the marking landed yesterday and whoever wrote it knows whether the host side tolerates the missing marks for vertex programs (option two) or whether the PSV is a small change (option one). What I can promise is that either fix is verifiable in two minutes with the table above.
Two notes for whoever picks it up:
translate.rs, so a bisect on the census will always land on the same place;translate --validate's first line before believing a count.No game data is involved: counts and commit hashes.
Written with an AI assistant.
@DesertGamer on GitHub · 2026-11-25 02:27 UTC · original
VIctory V2: community PRs, merged and tested
Open 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).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
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:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@BastienRodz on GitHub · 2026-11-25 02:27 UTC · original
PR: #1989 (
UAVsAtEveryStageand SFI00x4for non-pixel, non-compute stages with a declared UAV, as DXC collects them below validator 1.8). Could you rerun your offlinetranslate --validatecount on its branch,BastienRodz:shader/uavs-at-every-stage, to confirm the 867 come back?@fiestorra on GitHub · 2026-11-25 02:28 UTC · original
Correction to the severity in this report: it costs 867 programs in the validation census, not 867 programs in the title
I wrote the title as "costs 867 vertex programs", and after checking where the validator actually runs, that overstates it. Being precise, because the difference decides how urgent this is:
crates/victory-gpu/src/shader_cache.rstranslates withemit::translate_with(..., Options { view_marks: true })and does not loaddxil.dllat all.Validator::loadappears only in tests and inapps/victory/src/translate.rs(the offline--validatepath)..github/workflows/ci.ymlruns clippy andcargo test, and nothing in it callsvictory translate --validate.So the 867 vertex programs still translate and still load in the title; what they fail is the offline validator, which is the instrument I used to find this and which several benchmarks in the repository use to rank pull requests by "programs that now validate" (#1247, #1563, and the corpus census in #201).
That makes this a defect in the measurement rather than in the game, and I should have said so from the start. It also changes what a good fix looks like: leaving it unfixed means every later report of the form "N more programs validate" is counting against an instrument that is currently lying about 867 of them — the same failure mode #1945 describes for a different reason.
The measurements stand, and so does the narrowing:
Flags must match usageccfb029(before the marking)940d32f(marking on, the runtime's option)940d32f,view_marks: falseand the two candidate fixes from the comment above are unchanged: declare in the vertex stage's PSV/flags the root UAV the marking adds, or do not mark from the vertex stage. The second one has a cost I had not stated clearly either — it gives up copy-back accuracy for whatever a vertex program writes through a buffer view — so it is the less attractive of the two unless the PSV turns out to be hard to change.
What I would want from anyone reading: if the PSV for a vertex shader should carry a UAV entry, that is a small change in
container.rs; if it must not, then the marking has to be stage-aware and that is a design decision for whoever wrote it.No game data is involved: counts, file names and option names.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 02:29 UTC · original
Ruled out the obvious candidate: the marking does already declare
RAW_BUFFERSBefore anyone spends time on the hypothesis I led with, the negative result:
memory_space_handleincrates/victory-shader/src/emit/shader.rs— the one that makes theu1handle forVIEW_WRITES— ends withso a module that writes the marking bitmap does declare raw-buffer usage, and the
Flush to zero/RAW_BUFFERS(1 << 4) bit is not what the validator is missing.root_uav_handleandroot_srv_handledo the same. So "forgot to set the flag" is not the fix, and I would rather say it than have two people test it.What that leaves, as far as I can see from here:
ShaderFlagsagainst recomputed usage, and raw-buffer access may not be the bit that a UAV write trips; the marking is the first thing in this emitter that writes a UAV from a vertex program, so a bit that was never needed before may now be;Psvincontainer.rslists only samplers and CBVs (Binding { kind: 1 sampler, 2 CBV }), which is what PSV0 carries for every stage, so a UAV cannot be declared there; if the validator is comparing PSV0's runtime-info against a module that uses a UAV, the answer is that the marking must not be emitted for a stage whose PSV cannot say so;The experiment that decides between them, and the one I would run next if this were mine: dump one failing program's module (
VICTORY_EMIT_DUMPon a build withview_marks: true), rundxc -dumpbinon it, and read the declareddx.shaderFlagsand thePSV0next to thedx.op.bufferStorethe marking adds. The census shows exactly which programs to pick — anyVS_*VfxVBuffer*from the list in the report.Everything else in this issue stands: the regression is the marking (
view_marks: falsereturns 24,785), it affects the offline validator and not the title, and CI does not gate on it.No game data is involved: flags, struct field names and counts.
Written with an AI assistant.
@Calvix2k on GitHub · 2026-11-25 02:32 UTC · original
The fix for this is zed6000's patch in #1973 and is open as #1977 ("Shaders: declare UAVsAtEveryStage for vertex/geometry programs with UAVs"): it sets DXIL shader flag 16 plus the
SFI0feature bit0x4when a program that is not pixel, compute or mesh carries root UAVs or one of the written-pages/view-mark handles — which is exactly whatcd94d35started binding in vertex programs.zed6000 measured the counts your census shows:
940d32f+ patch gives +867 validated, 0 lost, andccfb029+ patch gives 0 gained, 0 lost (back to 24,785). Your 868-line error list is the 867 programs plus the header line.On the validator: your run says SDK
dxil.dll1.9 whiledefault_pathpicks the newest SDK folder; mine picks 1.7 from 10.0.26100 (the FileVersion/engine mismatch in #1945). The flag failures are independent of that — they areFlags must match usage, not PSV0 — so the census comparison holds either way.@fiestorra on GitHub · 2026-11-25 02:44 UTC · original
All 868 are
VfxVBuffervertex programs: the ones that write a buffer through a viewOne more cut of the census that narrows this a lot. Every failing program's name contains
VfxVBuffer, and nothing else does:VS_Transform…VS_TransformSkin…VS_TransformPreSkin…VS_PedTransformSkin…VS_PedTransformPreSkin…VfxVBufferin the nameThat is the strongest confirmation of the mechanism I have without reading the emitted module:
VfxVBufferis the class of vertex shaders whose purpose is to write a vertex buffer through a view. They are exactly the vertex programs where the write marking has something to mark — the other vertex programs write nothing, so the marking never runs in them, and they still validate.Which also says something about the size of the problem and about the fix:
VfxVBuffershader exists to produce, so it would be a bad trade for them;RAW_BUFFERS(I checked), PSV0 cannot carry a UAV in its resource list, so it is probably the module'sdx.shaderFlagsneeding a UAV/typed-UAV bit, orPSV0's runtime info for the vertex stage having a field that says "uses UAVs" that we leave at zero.If someone can dump one module (
VICTORY_EMIT_DUMPwithview_marks: true, pick anyVS_…VfxVBuffer…) and rundxc -dumpbin, the difference between itsdx.shaderFlagsand a compute program's is the answer. I would do it myself but pulling one container out of the archive is the part I have not solved without a CLI for it —translate --listnames the offset but not the length, and I will not guess at boundaries inside a shader pack.No game data is involved: program name prefixes and counts.
Written with an AI assistant.
@Calvix2k on GitHub · 2026-11-25 02:45 UTC · original
Correction to my comment above: I closed #1977 in favour of #1989 (BastienRodz) after Dathinel's mesh fixture showed my stage predicate still missed mesh shaders. Same two bits (flag 16 and
SFI00x4), plus mesh, plus a test that reads theShaderFlagsword out ofdx.entryPoints. The corpus numbers in this issue apply to #1989 unchanged.fiestorra's cut fits that: all 868 are
VfxVBuffervertex programs, i.e. exactly the onescd94d35made declare the view-write bitmapu1, and a vertex program that declares a UAV must carry the flag.@fiestorra on GitHub · 2026-11-25 02:46 UTC · original
I tried to pull one container out of the pack to dump its module — the offsets are pack-relative, so that is a bigger job than it looked
The next step I suggested needs one failing program's emitted module, and I tried to get it without a shader-pack parser. It did not work, and the negative result is worth writing down so the next person does not repeat it:
victory shader-info <pack> --verbosedoes print one line per container with an offset, e.g.and the next line's offset (
0x54c00) looks like the end of the previous container, which is what tempted me.Those are not file offsets. Reading 3,894 bytes at
0x53cca(the distance to the next line's offset) and handing them tovictory translategivescontainers 0: it parses nothing. The sixteen bytes at that offset aree7 dc 0d 00 7e 0c 00 00 38 0e 00 00 6d 56 09 38, a pack entry header rather than a container, and searching ±4 KB around it forDXBCfinds no magic at all.So the offset is relative to something in the pack (an entry table, or a decompressed view of it), and extracting a single container needs the
victory-formatspack parser, not arithmetic on the printed numbers. That is a small tool to write, and it is not this issue — but it is the concrete blocker in front of "dump the module and readdx.shaderFlags".What this leaves for whoever picks the fix up:
VfxVBuffer, all 868 of them, which is exactly the vertex programs that write a buffer through a view — so the marking runs in them and nowhere else in the vertex stage;memory_space_handledoesflags |= RAW_BUFFERS), PSV0 cannot carry a UAV in its resource list, so the missing declaration is somewhere else — most likely in the module'sdx.shaderFlagsfor a UAV write, or in what PSV0's runtime info says about the vertex stage;VICTORY_EMIT_DUMPon the whole pack (26,503 files locally) and afindfor the one name — which works today if someone wants to spend the disk space and the minute: that is what I would do next, and I would rather say so than claim the dump was impossible.No game data is involved: offsets, hex headers and counts.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 02:52 UTC · original
Dumped one failing module: its flags are not obviously wrong, and the resource that matters is declared — so the check is stage-sensitive
I got the module out this time, without extracting a container:
VICTORY_EMIT_DUMPover the whole pack (25,573 files written locally, then deleted) and picked oneVS_…VfxVBuffer…from the dump.What the failing module declares, from
dxc -dumpbin(SDK 10.0.26100):and its body does one
createHandleFromBinding, fourdx.op.rawBufferLoad.f32, and the marking's stores.So:
dx.resources(aRWByteAddressBufferat space 2, register 1), so "the module does not declare the resource it uses" is not the answer either;0x40180010, and modules that do validate declare the same kind of values: sampling 40 passing pixel and compute modules here gives0xc0080000(14),0x40000000(6),0xc0180000(3),0x40080000(2),0x40180000(2),0xc0000000(2),0xc0080010(2), and three with the0x1…atomic bits.0x40180010is not an outlier by itself —0xc0080010and0x1c8180010have the same bit 4 (raw buffers) set and validate.That leaves the least comfortable conclusion, and I would rather say it than imply progress: the flags and resources of the failing vertex module look like the flags and resources of modules that validate, so the rejection is in how the validator treats those on a vertex stage — or in something I am not seeing in the module at all. There is no validating vertex shader that writes through a view to compare against, because every such vertex shader in this corpus is one of the 868.
The next thing I would do, and the reason I am stopping here: read the check itself.
dxil.dllis closed, but the same check exists in the open DXC sources (DxilValidation.cpp), and searching it for "Flags must match usage" and reading which fields it compares tells the answer in a few minutes for someone who has the sources at hand — or for me next round, withgit cloneof DirectXShaderCompiler. Guessing at bits from the outside has cost me two rounds already and produced four negative results; the source will not.To be explicit about what I ruled out, since each of these is a plausible-looking fix that is not one:
RAW_BUFFERSmemory_space_handlesets it, and the module shows bit 4dx.resourceshas theRWByteAddressBufferat space 2 register 1No game data is involved in this comment: flags, metadata node shapes and counts. The dump was local and has been deleted.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 03:07 UTC · original
Fixed: the missing bit was "UAVs at every shader stage" (16) plus its feature bit (0x4), and the corpus is back to 24,785
The sentence I was missing last round was in the validator's own message, which
translatewas throwing away:actual - declared = 65536 = 1 << 16, on every one of the 868. Bit 16 of the shader flags is documented inDXIL.rstas "UAVs at every shader stage — set when a vertex, hull, domain, or geometry shader declares one or more UAVs". The write marking put a UAV into vertex programs that never had one, and the emitter never set the flag.Declaring the flag alone is not enough: the validator then compares the container's
SFI0with the module's flags, and the next error isContainer part 'Feature Info' does not match expected for module. DXC'sDxilShaderFlags::GetFeatureInfomaps bit 16 toShaderFeatureInfo_UAVsAtEveryStage = 0x0004, so that bit goes with it.Three measured steps over the same local 1.0.2.1 archive (26,503 containers), validator SDK 10.0.26100
dxil.dll1.9:Flags must match usageFeature Infomain940d32f)0x424,785 is the count the parent commit
ccfb029had, so the 868VfxVBuffervertex programs are back to validating and nothing else moved.Two things came with it, because without them this would not have been findable:
translate --validatekeeps the validator'snote:line, appended to the error it already reported. The old line said "Flags must match usage" and nothing else; the note says which flag, which is the difference between four rounds of guessing and a one-line fix.SFI0mapping moved out offinishintofeature_info, with a test that pins every bit against DXC's values (STENCIL_REF0x200,TYPED_UAV_LOADS0x800,UAVS_AT_EVERY_STAGE0x4,ROVS0x1000,WAVE_OPS0x4000,INT640x8000,ATOMIC64_TYPED0x400000,RESOURCE_HEAP0x2000000,SAMPLER_HEAP0x4000000,ATOMIC64_HEAP0x10000000). That pair is what broke here, and a table is cheaper to check than a chain ofifs in a 900-line function.Recipe:
cargo test -p victory-shader --locked --lib248 passed, 3 ignored;cargo test --workspace --locked26 suites with the one failuremainalso has in a session without a desktop (lifecycle::tests::showing_a_title_window_shows_its_stand_in);clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --checkwith the same two hunksmainalready has inshader.rsand no others (I reverted the two unrelated lines rustfmt wanted to reflow, so the diff carries no formatting churn).What this does not do: it does not make the marking cheaper or change what it marks — the flag is a declaration of what the module already does. And it does not touch the 735 programs refused for "entry function performs some operation that is incompatible with the shader stage" or the 195 with "an address in an SGPR that is no root parameter"; those are separate families with their own causes.
No game data is involved: flag values, counts and error text.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 03:29 UTC · original
A compute shader has no derivatives to sample with: 735 programs, all
Cs, all refused for it — andsampleLevelat level 0 fixes themThe next class after #1987, and this time the reason was in the run I had already made: the validator's
note:line said735 programs, every one of them a compute shader (
735 x Cs, no other stage). I dumped three of them (VICTORY_EMIT_DUMP) and disassembled withdxc -dumpbin:Three implicit
dx.op.samplenext to hundreds of explicit ones, in a stage that has no neighbours to take derivatives from.dx.op.sampleis not a legal operation forcs— no shader model makes it one without the mesh/amplification derivatives feature — and the console'simage_samplein that stage has no derivatives either: level 0 is what the instruction means there.So the lowering now asks the stage: a compute program samples at level 0 with
sampleLevel(62) and keepssample(60) everywhere the implicit form is legal. The choice issample_op(compute), and the test pins the pair.Measured on the offline census over the same local 1.0.2.1 archive (26,503 containers), validator SDK 10.0.26100
dxil.dll1.9:incompatible with the shader stagemain940d32f25,520 is 1,602 more programs than
main: the 868 vertex programs of #1987 and these 735, minus the one that was in both classes.One caveat worth stating, because it is the difference between "valid" and "right": the console program samples with whatever filter and coordinate the shader computed, and level 0 is the honest reading of "implicit level in a stage with no derivatives". If a title's compute shader relied on something else — a derivative register the console keeps per lane — this would change what it samples. That is worth a picture comparison on the raytracing resolve passes, which are the ones in this class, and I have not run the title to look at them.
Recipe:
cargo test -p victory-shader --locked --lib249 passed, 3 ignored;cargo test --workspace --locked26 suites with the one failuremainalso has in a session without a desktop;clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --checkwith the same 19 hunksmainalready has inlower.rsand no others.No game data is involved: program names, counts, operation names and thread-group sizes.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 03:39 UTC · original
Checked the addition by merging everything: 23,918 → 25,520 validated, and what is left
I claimed in #2027 that the two shader fixes add up to 25,520 from 23,918. Rather than trust the arithmetic, I merged all sixteen of my open branches onto
main940d32fat once and ran the census on the result (same archive, same 26,503 containers, same validator, SDK 10.0.26100dxil.dll1.9):So the arithmetic holds: +1,602, and the other fourteen pull requests change nothing here because they are in the GPU, CLI and HLE crates rather than the translator — which is what they should do.
Two of my own branches do conflict with each other when stacked, and it is worth knowing before someone merges in a hurry:
apps/victory/src/translate.rs, on the sameErr(text)arm: #2016 appends the validator'snote:line inline, #1767 hasvalidator_reason(&text)as a helper. The resolution is obvious (the note belongs inside the helper) but it is a resolution, not a fast-forward;crates/victory-gpu/src/resource.rs.That is normal for work in the same corner and does not affect mergeability against
main— every branch isMERGEABLE/CLEANon its own — but if the maintainer merges one and then the other, the second needs the rebase. I would rather say which two than let it be discovered at merge time.What is left in the census, in order, and none of it is a one-bit fix like the last two:
resources: an address in an SGPR that is no root parametervertex plus primitive output size is greater than 32768emit: a register joining a lane mask and data, read as dataemit: a descriptor read only as dataNone of those four has a one-line answer, which is why I stopped at the two that did and would rather leave the analysis above than start a third and leave it half-done.
No game data is involved: counts and message text.
Written with an AI assistant.
@reboot0000-cmd on GitHub · 2026-11-25 06:13 UTC · original
Independent confirmation of
cd94d35, plus the half that neither this issue nor #1973 states, which decides which of the three candidate fixes is actually complete.Bisect. Done the same way on this machine against a 400-container unpacked slice of
shaders.rpf(the archive holds no rawDXBC— every container is a compressed SGD5 record, so a byte slice cannot work; a carved corpus makes a bisect step ~50 s instead of ~10 min). Nine steps, one answer: first badcd94d35, parentccfb0299clean. Full-archive before/after on940d32f: VS+PS 13,338 → 14,205 validated (+867, class absent), compute 1,886 / 2,621 and mesh 8,694 / 8,765 unchanged, every other tally line identical.Why the fix has to be in two places, measured. Our module carries
dx.valver = {1, 6}, which selects DXC's validator-1.6 branch: it compares the entry-point shader-flags property against module usage and ignoresSFI0. That was proven by sweepingSFI0on one failing container — 0x0, all-ones, and every single bit — the validator note came back byte-identical each time (Flags declared=0x40100010, actual=0x40110010, i.e. used-but-undeclared bit 16, "UAVs at every shader stage"). And setting bit 16 in the entry property withoutSFI0 0x4does not pass either: the error moves toContainer part 'Feature Info' does not match expected for module. So flag-only and SFI0-only are both wrong; a reviewer comparing #1977 / #1989 / #2016 should check for both halves, which all three appear to include (#2016's port ofGetFeatureInfois the more general way to get this right, since the same trap will recur for other feature bits).Also worth recording, because it changes what "fixed" means here: the driver is not the blocker for these 867. A full
translate --validate --pipelineson940d32f6(RTX 4090, Agility 1.614.1 via #463, DXC 1.8 validator, 43 min, no device removal) created 2,191 of 2,191 vertex pipelines and 12,014 of 12,014 pixel pipelines — all 867 ran despite failing validation. The only creation-stage failures in the entire run were 394 compute programs, 382 of which do pass validation. Details on #1247.One cross-thread correction relevant to the tables in both issues: this box's
default_pathvalidator reportsFileVersion 1.8.2502but is DXC 1.7.2308 (101.7.2308.24), which false-rejects ~15k modules on the PSV0 string-table comparison — see #1945. Measuring "validated" totals with that engine and comparing them to totals from a 1.8/1.9 engine will not reconcile. Counts and offsets only, no title data.@Marvisak on GitHub · 2026-11-25 12:46 UTC · original · edited 2026-11-25 21:45 UTC
Automated triage for the maintainers.
Thanks for the bisect and the flag analysis. This is the same defect as #1973, and it is fixed in
mainbya1a2077("Shaders: vertex, geometry and mesh programs with UAVs say so in their flags"). Incrates/victory-shader/src/emit/shader.rs,Shader::finishsetsflags::UAVS_EVERY_STAGE(bit 16) and theSFI0bit0x4for any vertex, geometry or mesh program that declares a UAV range (root UAVs, the memory bitmap, the view-write bitmap). That is the pair your note line (declared=…, actual=…, a difference of1 << 16) pointed to.Independently confirmed since the last triage: an offline census on
67e8ae1(which containsa1a2077) hasFlags must match usageat 0 (867 on940d32f), with every emitted vertex and pixel program validating (14,242 of 14,242).#2016 is superseded by this commit except for its
note:line intranslate --validate, which could be offered on its own. The 735 compute programs refused for implicit sampling are a separate change (#2027) and not part of this issue.Proposed close as fixed in
main(a1a2077), the same as #1973. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes thetriage: proposed closelabel.Generated by Claude Code
@BaggyALPHA on GitHub · 2026-11-25 19:53 UTC · original
Corpus confirmation that
a1a2077closed this:Flags must match usageis 867 → 0, and every emitted vertex and pixel program now validates.@BastienRodz asked on #1989 for offline
translatereruns; here are two on the same archive and validator, before and after the fix landed onmain.Offline
translate <archive> --list --validate --jobs 6, title 1.0.2.1's shader archive, official DXC archivedxil.dll(1.8) rather than the installed SDK engine, release build, Windows 11 26300.Flags must match usagemain940d32f(before)main67e8ae1(witha1a2077)The 23,918 is the same number this issue's title reports for the regressed state, measured independently here, which is a good sign the two censuses are comparable. The after figure is above the 24,785 quoted as the pre-regression baseline, because other commits in the same 82 also raised emission by 74 programs.
Nothing from the game: counts, validator strings and commit ids. Full per-reason tables for both runs are on #1481.
AI-assisted (Claude Code); figures are from the two runs described.