Open
Leyukaka wants to merge 3 commits from
upstream-pr/3891 into main
pull from: upstream-pr/3891
merge into: R0Y00:main
R0Y00:main
R0Y00:codex/indirect-large-backed-views
R0Y00:codex/word3-preflight-check
R0Y00:codex/vertex-table-two-records
R0Y00:codex/live-index-alias
R0Y00:codex/copied-vertex-buffer-srv
R0Y00:codex/windows-stage-test-output
R0Y00:codex/preserve-live-srv-retirement
R0Y00:codex/share-render-target-tracking
R0Y00:codex/sgd5-negative-offset-fixture
R0Y00:coverage-dashboard
R0Y00:codex/mesh-loose-root
R0Y00:codex/mesh86-cache-padding
R0Y00:codex/xmem-scatter-preflight
R0Y00:codex/mesh-depth-ps
R0Y00:codex/indirect-dispatch-refresh
R0Y00:codex/compute-container-index
R0Y00:codex/startup-compute-formatted-load
R0Y00:codex/compute-indirect-producer
R0Y00:codex/compute-atomic-soffset
R0Y00:codex/mesh-dual-handoff
R0Y00:codex/startup-run-sh-watcher-control
R0Y00:codex/queue31-page-alias
R0Y00:codex/indexed-indirect-compute-root
R0Y00:codex/typed-buffer-view-metadata
R0Y00:codex/translated-indexed-address-alias
R0Y00:codex/fixed-mesh-create-result
R0Y00:codex/xmem-section-lease
R0Y00:codex/startup-slot86-mesh-cache
R0Y00:codex/restore-mesh-barrier-iteration
R0Y00:codex/translated-indirect-upload-index
R0Y00:codex/xapu-completion-opt-in
R0Y00:codex/translated-indexed-rect
R0Y00:codex/translated-indexed-indirect
R0Y00:codex/startup-mesh-lds-integration
R0Y00:codex/startup-console-ms24
R0Y00:codex/startup-slot57-mesh-request
R0Y00:codex/indirect-copy-provenance
R0Y00:codex/present-color-producer-trace
R0Y00:codex/compute-dispatch-binding-trace
R0Y00:codex/translated-indirect-table-buffers
R0Y00:codex/indirect-copy-provenance-base
R0Y00:codex/mix-half-literal-source
R0Y00:codex/translated-indirect-draw
R0Y00:codex/xmem-scatter-diagnostics
R0Y00:codex/slot148-recording-upload
R0Y00:codex/slot70-loading-art-verified
R0Y00:codex/command-list-upload-arena
R0Y00:codex/recover-failed-command-list
R0Y00:codex/startup-heap-timing-notes
R0Y00:codex/align-audio-input-timeline
R0Y00:codex/synthetic-depth-export-control
R0Y00:codex/startup-texture1d-on-windows
R0Y00:codex/1629-packed-position-fixture
R0Y00:codex/cpu-srv-refresh
R0Y00:codex/stream-root-srv-draw
R0Y00:codex/audio-mixer-timer
R0Y00:codex/startup-reload-published-shader
R0Y00:codex/priority-integrate-1284
R0Y00:codex/guest-sixteen-page-record
R0Y00:codex/aot-placed-dxr-batch
R0Y00:codex/guest-directory-selection
R0Y00:codex/gamesave-enumerate-read
R0Y00:codex/readme-archive-to-pixels
R0Y00:codex/pe-placed-view-draw
R0Y00:codex/archive-directory-gpu
R0Y00:codex/slot133-dxr-build
R0Y00:codex/materialize-placed-vertex-view
R0Y00:codex/dstorage-directory-offsets
R0Y00:codex/xg-nine-bc-copy
R0Y00:codex/xg-slot10-bc64-arrays
R0Y00:codex/dxr-guest-address-readback
R0Y00:codex/gpu-va-high-bits
R0Y00:codex/clarify-diagnostic-startup-scope
R0Y00:codex/xg-six-levels
R0Y00:codex/typed-derived-blend
R0Y00:codex/english-legal-text-progress
R0Y00:codex/address-bc-4ks
R0Y00:codex/dstorage-bounded-file-read
R0Y00:codex/wide-srv-offsets-menu
R0Y00:codex/startup-memory-srv
R0Y00:codex/bound-view-tail
R0Y00:codex/language-selector-readback
R0Y00:codex/setup-menu-progress
R0Y00:codex/cpu-plane-refresh
R0Y00:codex/startup-ubyte-vertex
R0Y00:codex/presenter-window-selection
R0Y00:codex/startup-uniform-buffer-lane
R0Y00:codex/intro-loop-timing
R0Y00:codex/static-clzero-loops
R0Y00:codex/document-rtx-intro
R0Y00:codex/startup-insertq
R0Y00:codex/nv12-startup-texture
R0Y00:codex/stream-stage-draw
R0Y00:codex/startup-null-uav-format
R0Y00:codex/startup-draw-capture
R0Y00:codex/shorten-windows-checks
R0Y00:codex/dstorage-rfc1950
R0Y00:codex/startup-dump-fence
R0Y00:codex/pr1135-review-base
R0Y00:codex/startup-stream-requests
R0Y00:codex/startup-chroma-view
R0Y00:codex/readme-graphics-pipeline-streams
R0Y00:codex/static-crt-free-tls
R0Y00:codex/arc-140t-rtx-5080-laptop-gpu-reports
R0Y00:codex/main-startup-progress-entry
R0Y00:codex/signed-dxil-catalogue
R0Y00:codex/reloc-free-preferred-base
R0Y00:codex/quad-dpp-bit-mask
R0Y00:codex/raw-srv-bounds
R0Y00:codex/rx9070-31044-hardware-report
R0Y00:codex/gpu-page-source-provenance
R0Y00:codex/runtime-placeholder-interior
R0Y00:codex/gpu-copy-queue-tile-order
R0Y00:codex/pe-pin-external-providers
R0Y00:codex/xmem-placeholder-reservations
R0Y00:codex/xmem-shared-physical-pages
R0Y00:codex/pe-package-startup
R0Y00:codex/xmem-tools-memory-query
R0Y00:codex/cpu-stack-output-import
R0Y00:codex/pe-load-security-cookie
R0Y00:codex/record-three-bvh-retests
R0Y00:codex/cpu-rbp-frame-anchor
R0Y00:codex/xmem-default-startup
R0Y00:codex/record-rtx-3050-ti-9597
R0Y00:codex/docs-readme-start-here
R0Y00:codex/check-compute-mad24-truncation
R0Y00:codex/docs-discord-community
R0Y00:codex/bound-rcx-branch-mutants
R0Y00:codex/rtx5060ti-bvh-62114
R0Y00:codex/837-neutral-readme-disclaimer
R0Y00:codex/record-rtx-3070-ti
R0Y00:codex/title-neutral-public-wording
R0Y00:codex/exe-shadow-frame-submissions
R0Y00:codex/exe-shadow-runtime-chain
R0Y00:codex/readme-polish
R0Y00:codex/gpu-coverage-nov23
R0Y00:codex/spirv-minlod
R0Y00:codex/shadow-shim-device
R0Y00:codex/exe-two-shadow-frames
R0Y00:codex/shim-dispatch-cleanup
R0Y00:codex/fix-spirv-cache-probe
R0Y00:codex/sampler-use
R0Y00:codex/ballot-bit-extract
R0Y00:codex/packed-fma-release
R0Y00:codex/cpu-packed-fma-o2
R0Y00:codex/publish-coverage-dashboard
R0Y00:codex/mesh-cbv-binding-order
R0Y00:codex/spirv-window-fixture
R0Y00:codex/ps-e32-float-uint
R0Y00:codex/ps-cbuffer-reads
R0Y00:codex/fixed-profile-rescan
R0Y00:codex/shim-compute-integration
R0Y00:codex/readme-visible-coverage
R0Y00:codex/readme-research-navigation
R0Y00:codex/integrate-pr-256
R0Y00:codex/indexed-mesh
R0Y00:codex/sampled-coverage
R0Y00:codex/first-ms
R0Y00:codex/dual-ps
R0Y00:codex/ps-attribute
R0Y00:codex/compute-first
R0Y00:codex/ps-export
R0Y00:codex/readme-research-status
R0Y00:codex/ps-layout
R0Y00:codex/blast-window
R0Y00:codex/chart-caption
R0Y00:codex/reviewer-roles
R0Y00:codex/blast-aot
R0Y00:codex/archive-program
R0Y00:codex/crc-stream-program
R0Y00:codex/exe-image-data-chain
R0Y00:codex/local-cpu-fixture-coverage
R0Y00:codex/exe-bound-frame-chain
R0Y00:codex/exe-mapped-comparison
R0Y00:codex/contribution-dependencies
R0Y00:codex/exe-entry-aot
R0Y00:codex/bink-frame-heap-integration
R0Y00:docs/hardware-seven-reports
R0Y00:codex/bink-custom-heap
R0Y00:codex/bink-heap-callers
R0Y00:codex/discussions-entry-points
R0Y00:codex/gpu-community-batch-64
R0Y00:codex/ffx-scratch-writers
R0Y00:codex/generic-project-documentation
R0Y00:codex/ffx-dispatch-rcas
R0Y00:codex/four-windows-gpu-reports
R0Y00:codex/title-neutral-project-wording
R0Y00:codex/community-coverage-provenance
R0Y00:codex/rcas-packed-texels
R0Y00:codex/community-gpu-retests
R0Y00:codex/community-build-and-gpu-reports
R0Y00:codex/ffx-provider-loop
R0Y00:codex/ffx-recurrent-views
R0Y00:codex/ffx-recurrent-resource
R0Y00:codex/amd-wave64-reports
R0Y00:codex/ffx-backend-slots
R0Y00:codex/upscaler-device-init
R0Y00:codex/ffx-context-lifecycle
R0Y00:codex/ffx-version-query
R0Y00:codex/ffx-provider-contract
R0Y00:codex/typed-object-callback
R0Y00:codex/cpu-ordinal-import
R0Y00:codex/chained-cpu-ranges
R0Y00:codex/cpu-import-call
R0Y00:codex/cpu-direct-call
R0Y00:codex/cpu-leaf-aot
R0Y00:codex/community-project-status
R0Y00:codex/script-state-path-replay
R0Y00:codex/script-state-evidence
R0Y00:codex/bc7-resident-tail
R0Y00:codex/bcpack-mip-tail
R0Y00:codex/bc7-texture-draw
R0Y00:codex/asset-ranges
R0Y00:codex/pixel-constants
R0Y00:codex/pixel-aot
R0Y00:codex/pre-exe-workloads
R0Y00:codex/root-signature-device-coverage
R0Y00:engineering/packed-bvh-leaves
R0Y00:engineering/bvh-build-and-update
R0Y00:engineering/intake-root-roundtrip
R0Y00:community/gpu-check-release
R0Y00:community/english-contributor-entry
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows!3891
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-02T21:02:41Z.
Refs #3310. Supersedes #3321 and #3772, if their authors agree (see Landing order). Target
main.This branch carries the work of @wish131400 (#3321) and @Vilify-13 (#3772), rebased onto
mainbd72fae3d. The three original commits are kept with their authors, dates and messages unchanged; it adds no commit of ours.Problem
#3321 adds an opt-in descriptor history and a GPU-written Mesh argument fixture. #3772 adds heap-relative filtering on top of it and carries #3321's commit. Both conflict with current
main, and #3772's review has two open items: the landing order with #3321, which is still unanswered on #3321, and the rebase. Each rebase conflict sits in lines that #3321'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 #3725, #3776 or #3885.
Landing order
The three commits land together, in order: #3321's commit first, then #3772's two. This is the "close in favour of one PR" option from the #3772 review. It needs both authors' agreement, and I am asking on #3321 and #3772. 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 #3772 review were not rerun on this head.
Known limitations
mainrequested in the #3772 review (base against head, switch unset) was not run.new=0, the same as copying an empty descriptor.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T21:15:39Z.
Review: COMMENTED
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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T06:53:28Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-12-03T16:25:49Z.
Review: COMMENTED
Review of head
674c1f4836022150123bea1c437211d59c305181, as the single landing PR for #3321 and #3772.Verdict: comment. I expect to approve the rebased head after a quick recheck. The three commits carry #3321 and #3772 with no code changes. The landing-order point from my #3772 reviews is settled on the #3321 side: its author agreed on #3321 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 #3772 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 (#3321'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 #3321'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.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-03T17:17:42Z.
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.