tests: startup_compute_gather_l is flaky, about one run in three #3694
Open
opened 2026-12-01 02:50:20 +00:00 by KelboLive
·
5 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
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#3694
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 R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-12-01T02:50:20Z.
tests:
startup_compute_gather_lis flaky, about one run in threeSummary
startup_compute_gather_lfails intermittently with a one-word readback mismatch. It is not a regression, andit does not bisect — which I found out the hard way, see below.
Measurement
At
12a0e309f, three consecutive runs of the warp variant:So roughly one in three, on a test that takes six seconds — enough to fail a hardware sweep and enough to
waste a bisect.
Why this is not a regression
It passed in the
bee9c64hardware sweep (990/990). That, plus the intermittent rate, means it cannot beattributed by bisecting on single runs — but I tried:
409f127822103d6529436242d567bb79add62d5ab308f2d5ab308f(two re-runs)That last row is the point: the same commit failed and then passed twice. A bisect over a one-in-three failure
produces a confident wrong answer, and I nearly filed
2d5ab308f(#3619) as the cause.Suggested next step
Loop the warp variant on one commit to get the real rate, then look at the synchronisation between the
dispatch and the readback in
tests/startup_compute_gather_l_check.py—mismatches=0anddebug_errors=0in every passing block suggests the data is right when the copy lands, and wrong only in therare run where ordering or a stale cache decides it.
--jobsis not involved: the test compiles one program, and the parallel option belongs to the--refusalsmode of
compile_dxil.Related
The same sweep produced four
SV_Positionfailures (msg 660) which are a real regression, reported in #3693.This one is separate and should not be lumped in.
Refs #3693, #3507.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-12-01T03:01:28Z.
I reproduced this on
main1a9ccbc4with the in-box WARP (Windows 11 10.0.26100, driver 10.0.26100.9711).startup_compute_gather_l_warpfailed 8 of 8 runs here, always at the same place, and I think the quoted mismatch is not the failure.The quoted line is a negative control.
dispatch()runs six mutants after the positive cases. Each mutant has to produce a mismatch, and each one prints aword=0 … differs from CPU referenceline:dropped_gatherexpected=3f1020e2 actual=00000000wrong_componentexpected=3f1020e2 actual=3f1020e0forced_mip_zeroexpected=3f1020e2 actual=3f0041e2wrong_first_mipexpected=3f1020e6 actual=3f0041e6wrong_tap_orderexpected=3f1020e2 actual=3f1010e2ignored_max_lodexpected=3f1020e2 actual=3f201062actual=3f201062is theignored_max_lodcontrol, which is expected to differ and passes its assertion. All six appear in every run, passing or failing.The failure is the pixel half. After the controls,
dispatch_ps()asserts attests/startup_compute_gather_l_check.py:337, and the renderer output is:That is the PSO creation error from #3693, the shared
pixel_aot_vs.hlsloutput change. WARP has no debug layer here, so message 660 is not printed, but the HRESULT is the same. Becausedispatch_ps()runs last, the visible output ends with the mutant lines and the assertion's renderer text. A failing run therefore looks like a compute mismatch.So on this host it is deterministic and comes from #3693. I can't explain a one-in-three rate from this. If your passing runs were on a tree before #3623, or on a configuration where the pixel half returns 77, that would account for it. Running
ctest -R '^startup_compute_gather_l_warp$' --output-on-failureand reading past the mutant lines to theAssertionErrorshould show which half failed.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-01T08:46:46Z.
I'll take #3694. The printed
word=0 expected=3f1020e2 actual=3f201062line is theignored_max_lodnegative control, anddispatch_ps()afterwards can fail with the #3693 pixel-pipeline HRESULT, so I'll make the test say which half failed. I won't touch the shared vertex shader (that's #3698). After that isolation is on the tree, I'll loop the warp variant on the test PC to measure any remaining rate, and if a compute/readback flake remains, I'll fix the dispatch-to-readback sync inrun_compute/submit_and_wait.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-12-01T09:17:11Z.
One measurement that bears on the "is it #3693 leaking through
dispatch_ps()" question, since it does not fit a deterministic failure:At
12a0e309f(where the #3693 breakage is present), three consecutive runs ofstartup_compute_gather_l_warp:And the same commit-level test at
2d5ab308f, where I first saw it fail, then passed twice in a row on re-run:If the failure were only the #3693 pipeline HRESULT reaching
dispatch_ps(), I would expect it every run at those trees, since #3623 is present in both. So either the pixel half is conditional, or there is a second, genuinely intermittent component.That is also why I filed this as flaky rather than as a bisected regression: I had a bisect that pointed at
2d5ab308f(#3619) on one run per step, and then that commit passed twice, which invalidated it. If your isolation shows which half fails, it would be worth re-running the same commit several times to see whether the failing half is stable — the data above says single runs are not enough to decide.Not attached to this issue: I am not editing the fixture, it is yours.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-01T09:49:13Z.
Windows WARP follow-up from #3714 at
fc562ff3: startup_compute_gather_l_warp was looped 30 times, each as its own ctest process. There was no compute or readback flake in those 30 runs (compute residual 0); every failure was the #3693 pixel half (HRESULT 0x80070057, SV_Position register mismatch). The new labels name that pixel half instead of looking like a compute flake.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-12-01T10:17:28Z.
Independent confirmation of the 30-run loop: at
1949fe015(the #3698 head, where the 660 cause is fixed),startup_compute_gather_l_warplooped ten times, each its own ctest process:That agrees with your measurement: with the pixel half fixed there is no compute or readback flake left in this test, so the intermittent failures I saw were #3693 reaching
dispatch_ps()after the compute half had already passed. My "flaky" label in this issue was the wrong conclusion — I had two failures and two passes on single runs and inferred a rate, when the thing that varied was the pixel half, not the compute one.So this closes with the two fixes rather than needing a compute-side change: the last useful piece is your labelling in #3714, which makes the next failure name its half.
Re-running the loop a few times on
mainafter #3698 merges would confirm the same at head, but there is nothing left to diagnose here.