No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3893
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3891"
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?
@Leyukaka on GitHub · 2026-12-02 21:02 UTC · original
Leyukaka:takeover/3772→main· +2784 −31 · 25 files · 3 commits · openRefs #3312. Supersedes #3323 and #3774, if their authors agree (see Landing order). Target
main.This branch carries the work of @wish131400 (#3323) and @Vilify-13 (#3774), rebased onto
mainbd72fae3d. The three original commits are kept with their authors, dates and messages unchanged; it adds no commit of ours.Problem
#3323 adds an opt-in descriptor history and a GPU-written Mesh argument fixture. #3774 adds heap-relative filtering on top of it and carries #3323's commit. Both conflict with current
main, and #3774's review has two open items: the landing order with #3323, which is still unanswered on #3323, and the rebase. Each rebase conflict sits in lines that #3323's commit touches, so the two cannot be rebased independently without one conflicting with the other.Change
d468da90a42a18553+029dfefe)cd05d66b4390f5c1d)72ba1df20e2609c0e)X2W_D3D12_DESCRIPTOR_HISTORYunset,note_viewandnote_copycall the sameshadow_slotoverloads asmain; the filter variable is not read and no registry is built.X2W_D3D12_DESCRIPTOR_HISTORY_FILTERtakes up to twoTYPE:VISIBILITY:NODE_MASK:CAPACITY:ORDINAL:FIRST:COUNTselectors and selects descriptor operations before they use the 8,192-record budget. Grammar and limits are indocs/experiments/descriptor-history-filter.md.The rebased diff equals the two PRs line by line, except for two mechanical conflict resolutions:
CMakePresets.json,prtest filter: keepsmain's entries and adds this branch's (startup_mesh_argument_provenance_warpandstartup_descriptor_history_(model|(filter|exhaustion|incomplete)_warp)).tests/startup_indirect_draw_indexed.cpp,DrawKind::meshcondition: keeps the modesmainadded and addsmesh-provenance.I found no logical conflict with #3727, #3778 or #3887.
Landing order
The three commits land together, in order: #3323's commit first, then #3774's two. This is the "close in favour of one PR" option from the #3774 review. It needs both authors' agreement, and I am asking on #3323 and #3774. If either author prefers to land their own PR, I will close this one.
Verification
Windows, on the same commits rebased onto
bd72fae3d: 9 of 9 passed, GPU tests run serially. The branch was then rebased again onto70d2679d7without conflicts.startup_mesh_argument_provenance_warp,startup_mesh_argument_provenance_hardwarestartup_descriptor_history_modelstartup_descriptor_history_filter_warp,startup_descriptor_history_filter_hardwarestartup_descriptor_history_exhaustion_warp,startup_descriptor_history_exhaustion_hardwarestartup_descriptor_history_incomplete_warp,startup_descriptor_history_incomplete_hardwareThe mutation results reported in the #3774 review were not rerun on this head.
Known limitations
mainrequested in the #3774 review (base against head, switch unset) was not run.new=0, the same as copying an empty descriptor.@R0Y00 on GitHub · 2026-12-02 21:15 UTC · original · reviewed
Independently tested
674c1f48with MSVC Debug on Windows 11 build 26300.ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^startup_(mesh_argument_provenance_(warp|hardware)|descriptor_history_(model|(filter|exhaustion|incomplete)_(warp|hardware)))$'passed all nine cases. That includes the disabled/invalid filter cases, history budget and omission controls, and Mesh argument readback on WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. This is fixture coverage. The disabled-path timing comparison and the two original authors' landing choices are still open.@R0Y00 on GitHub · 2026-12-03 06:53 UTC · original
I ran the source-built
startup_descriptor_history_checkmodel at674c1f48with MSVC C++17. The 1,024-heap discovery, 100,000 randomized registry operations, 20,000 randomized admission operations and all nine omission reasons passed. I also checked the merge againstmainat29bb2aed: the remaining textual conflict isCMakePresets.json. Please keep main’s build targets and smoke tests, then addstartup_descriptor_history_check,startup_mesh_argument_provenance_warp, andstartup_descriptor_history_(model|(filter|exhaustion|incomplete)_warp). The model result does not cover the previously requested disabled-path benchmark, and the two original PRs’ landing order is still being coordinated.@Not-Saii on GitHub · 2026-12-03 16:25 UTC · original · reviewed
Review of head
674c1f4836022150123bea1c437211d59c305181, as the single landing PR for #3323 and #3774.Verdict: comment. I expect to approve the rebased head after a quick recheck. The three commits carry #3323 and #3774 with no code changes. The landing-order point from my #3774 reviews is settled on the #3323 side: its author agreed on #3323 and closed it in favour of this PR. Both sandbox runs at this head passed, and both mutants were caught. I am not approving yet for two reasons. The branch conflicts with
mainagain, and the rebase re-resolvestests/startup_indirect_draw_indexed.cpp, the file that dispatches the provenance fixture (SHOULD 1). The #3774 author has also not answered yet.Rebase check
git range-difffrome2609c0eshows the two filter commits (10895c46,674c1f48) differ only inCMakePresets.jsonregex context. Every source, test and doc hunk is identical.029dfefe(its last head, a merge ofmain) with commitb04ac0c2in this PR. Six of eight files match line for line:d3d12_capture.inl, both docs, the provenance.inl/.py, and the.cmakefile. The other two are the conflict resolutions the PR body describes:tests/startup_indirect_draw_indexed.cpp: theDrawKind::meshcondition keepsmain's new modes and addsmesh-provenance. The dispatch tocheck_mesh_argument_provenanceis the same as in029dfefe.CMakePresets.json: theprpreset gainsstartup_descriptor_history_check(build) andstartup_mesh_argument_provenance_warp|startup_descriptor_history_(model|(filter|exhaustion|incomplete)_warp)(tests). Nothing is removed, anddev/releaseare unchanged.main. Between the two bases,mainchangedd3d12_xs_device.cppbut not the functions this PR hooks. In674c1f48,note_view/note_copyare still called at the same view, copy, sampler and uncreated-record sites.descriptor_rangesstill has its singlepush_backand no erase.mainsince70d2679d(up toac81f34e), I found no newshadow_slot/note_view/note_copycaller and no newCopyDescriptors*call anywhere insrc/.CreateShaderResourceView, innative_mesh57.inl. It writes a shim-owned native heap, next to the existing call above it, not a guest descriptor.subprocess.run).CMakePresets.jsonchanges only theprpreset lists above.Findings
SHOULD
main.git merge-treeagainstac81f34ereports conflicts inCMakePresets.json(theprbuild list and test filter) andtests/startup_indirect_draw_indexed.cpp(theDrawKind::meshcondition again). GitHub shows the PR as conflicting. Both conflicts are mechanical, and the resolutions in this PR still apply: keepmain's entries and modes, then add this branch's.d3d12_capture.inlandd3d12_xs_device.cppmerge cleanly.NIT
bd72fae3d". It does not give the adapter, driver, Windows build or debug-layer state that AGENTS.md asks for. R0Y00's comment and the sandbox runs below cover674c1f48with those fields. After the rebase, one line with the final head and environment would close this.Before merge
Follow-ups (not blocking, as the body already says)
new=0. Each one is a separate change to the history format, so I would track them in an issue rather than hold this PR.main(base against head, switch unset). Withhistory_active()choosing the sameshadow_slotcalls asmain, I expect the cost to be in the callers' flag reads and stack structs. It is still worth measuring once.What the tests prove
startup_descriptor_history_model: the range, filter, registry, admission, budget and omission-counter logic without a GPU, including 1,024-heap discovery and randomized registry and admission runs.startup_descriptor_history_filter_{warp,hardware}: with a filter set, only the selected heap windows are recorded, and invalid or disabled filters behave as documented. The GPU oracle checks the bound descriptors.startup_descriptor_history_exhaustion_{warp,hardware}: the 8,192-record budget, the truncation line, and that filtered-out operations do not spend the budget.startup_descriptor_history_incomplete_{warp,hardware}: per-reason omission counters at run time (opaque-copy,off, a 1,024-heapdiscoveryoverflow).startup_mesh_argument_provenance_{warp,hardware}: a GPU-written Mesh argument record draws 8/8 pixels, and the history traces the bound descriptor through itscreateandcopyevents back to the source (#3323's fixture).startup_indirect_mesh_*andstartup_indirect_draw_indexed_*: the existing fixtures in the shared executable still pass with themesh-provenancemode added.Mutation results (Windows Sandbox, network off, PR tree read-only)
Each mutant passed the rebuild check (changed outputs listed) before its failures were counted.
retained_registry.h:180, I replacedwindow(a)with an empty window.d3d12_xs.dllandstartup_descriptor_history_check.exechanged.model,filter_warp,filter_hardware,exhaustion_warp,exhaustion_hardware. The other 8 passed.create. Atd3d12_capture.inl:966, I changed the"copy"event name innote_copy's trace to"create". This reverts #3323's copy provenance trace.d3d12_xs.dllchanged.mesh_argument_provenance_warpand_hardware, at the assertion that the bound descriptor's second event is acopyfrom the source (startup_mesh_argument_provenance_check.py:52), plusfilter_*,exhaustion_*andincomplete_*on both adapters, at their expected-history comparisons.modeland the fourindirect_*tests passed, as expected: the model does not compiled3d12_capture.inl, and the indirect fixtures do not read the history.Evidence (AGENTS.md fields)
674c1f4836022150123bea1c437211d59c305181, exported withgit archiveinto Windows Sandbox, two runs (one mutant each). The network probe reportedunreachablein both.X2W_D3D12_DEBUG=1cmake --preset dev -DX2W_WITH_OPUS=OFF -DINTAKE_PYTHON=<venv python> -DOFFSCREEN_AGILITY_620_DIR=<Agility 1.620 dir> -DOFFSCREEN_WARP_DIR=<WARP 1.0.22 dir>cmake --build --preset dev --target startup_descriptor_history_check startup_indirect_draw_indexedctest --preset dev --no-tests=error --output-on-failure -V -R '^startup_(descriptor_history_(model|(filter|exhaustion|incomplete)_(warp|hardware))|mesh_argument_provenance_(warp|hardware)|indirect_mesh_(warp|hardware)|indirect_draw_indexed_(warp|hardware))$', then the same with--repeat until-fail:5.model,filter/exhaustion/incompleteandmesh_argument_provenanceon WARP and hardware, andindirect_mesh/indirect_draw_indexedon WARP and hardware.driver: 1.0.22.0(app-local WARP);driver: 32.0.16.1088.D3D12GetDebugInterface hr=0x00000000;provenance debug info_queue=lines in the head leg readpresent, none readabsent, and no debug ERROR or CORRUPTION line appeared.CI
Run 46970038595 on
674c1f48: the Windowsprpreset ran 299 tests with 0 failures and 5 skips (native_compute_ds_append_{warp,hardware}and threexmem_placeholder_split_*controls, none from this PR). It ran and passed 7 of this PR's tests or of the fixtures it changes:startup_mesh_argument_provenance_warp;startup_descriptor_history_model;startup_descriptor_history_filter_warp;startup_descriptor_history_exhaustion_warp;startup_descriptor_history_incomplete_warp;startup_indirect_mesh_warp,startup_indirect_draw_indexed_warp.CI ran none of the
_hardwaretests. Those results come only from the sandbox runs above. The Linux and gfx1013 jobs passed.674c1f4836to707291193a@Leyukaka on GitHub · 2026-12-03 17:17 UTC · original
Thanks @Not-Saii for the detailed review and the two mutants.
SHOULD 1 (rebase). Rebased onto
8cb022dbcand force-pushed; new head707291193ac9d3508232a83832a8924fc92ee86d. The three commits keep their original authors, dates, messages and trailers.git range-diffagainst674c1f48differs only in the conflict context:CMakePresets.json: keptmain'sprbuild targets and test filter, then re-added this branch'sstartup_descriptor_history_checktarget andstartup_mesh_argument_provenance_warp|startup_descriptor_history_(model|(filter|exhaustion|incomplete)_warp).tests/startup_indirect_draw_indexed.cpp: theDrawKind::meshcondition keepsmain'sderived_meshand addsmesh-provenance. The dispatch tocheck_mesh_argument_provenanceis unchanged.docs/experiments.md: the index entry added by the second commit and removed by the third now sits aftermain's new entries; the net change is still none.d3d12_capture.inlandd3d12_xs_device.cppmerged cleanly. The 3 commits onmainsinceac81f34eadd nonote_view/note_copy/shadow_slotcaller and noCopyDescriptors*or view-creation call insrc/.NIT 2 (verification of this head). Run at
707291193ac9d3508232a83832a8924fc92ee86d, on Windows with MSVC, on WARP and on a hardware adapter. The same 13 tests as in your review passed (13/13, 0 failed):startup_descriptor_history_modelstartup_descriptor_history_{filter,exhaustion,incomplete}_{warp,hardware}startup_mesh_argument_provenance_{warp,hardware}startup_indirect_mesh_{warp,hardware}startup_indirect_draw_indexed_{warp,hardware}The PR body's older 9/9 line refers to the previous base; this run replaces it.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.