tests: pixel_aot draws spend most of their time creating a D3D12 device per case #442
Closed
opened 2026-11-22 03:50:11 +00:00 by lukaslw-lab
·
46 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#442
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 lukaslw-lab on 2026-11-22T03:50:11Z.
AI-assisted (Claude Code). Measurements from my own machine.
Problem
pixel_aot_check.py drawlaunchesoffscreen_check.exeonce per case, and each launch creates a new D3D12 device. That device creation dominates the test time, and new draws keep adding to it.pixel_aot_hardwarehasTIMEOUT 60.At
3f02f4d, Windows 10 22H2 (19045.7846), RTX 3080 Ti (driver 32.0.16.1047), debug layer enabled, DXC 1.9.2609.5, idle machine:pixel_aot_hardwarepixel_aot_warpoffscreen_check.exe, 134 launchesdxc.exe, 56 callsA program that only creates a hardware device and a queue takes 300–360 ms per process; the debug layer adds about 10–30 ms. Under moderate background load the hardware test took 57–60 s and timed out in 4 of 5 runs.
Proposal
An opt-in
offscreen_check <backend> --batch <file>that creates the device once and runs the listed cases on it, printing the same per-case output and status as today. The single-case command line stays unchanged.This touches the same
main()as #166 (operation table, explicit pass/77/fail). It could build on top of #166 once that lands: device setup once, then one table row per case.Two PRs, after #166:
offscreen_checkbatch mode and its controls.pixel_aot_check.pyswitches to it, timed to avoid the openpixel_aotPRs.Estimated result: hardware under 10 s, WARP about 4 s.
Alternatives
TIMEOUT: simple, but the test keeps growing.pixel_aot_*into several tests: shorter tests, same total time.Verification
On WARP and hardware:
pixel_mismatchcase between passing cases fails alone.Is one process per case intentional, for example to isolate driver state? If so, would you prefer a higher timeout instead?
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T03:58:08Z.
Second measurement, from a different machine.
At
ba7d6b7: Windows 11 Pro build 26200, RTX 3080 (driver 32.0.16.1088), Ryzen 5 7600X, DXC from Windows SDK 10.0.26100.0. The D3D12 debug layer is unavailable (Graphics Tools not installed;offscreen_checkprintsdebug_layer=unavailable). The machine was close to idle, at about 8% CPU.ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$', 3 runs each:pixel_aot_hardwarepixel_aot_warpoffscreen_check.exe, 139 launchesdxc.exe, 57 callsI got the breakdown from a wrapper outside the repo that times every
subprocess.runcall and runspixel_aot_check.pyunchanged. The three runs agree within 0.2 s. The count is now 139 launches and 57 dxc calls; it was 134 and 56 at3f02f4d.Per
offscreen_checklaunch: hardware median 189 ms (min 182, p90 203); WARP median 31 ms (min 28, p90 35).I also built a program that only creates a device on the first high-performance adapter (or WARP) at feature level 11_0, plus a direct command queue, and then exits. Over 20 runs after one warm-up:
(An empty
cmd /c exit 0costs about 19 ms per process here.)So on this machine the cost of a launch is almost all device creation: 139 × ~188 ms ≈ 26 s of the 26.8 s. That is the same pattern as the issue, but the absolute times are about 0.6× on hardware and 0.55× on WARP. Without a debug layer here I can't isolate its cost. The difference from the issue's 300–360 ms per hardware device mixes the debug layer, Windows 10 vs 11, the driver build and the hardware, and this data can't tell those apart.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T08:25:13Z.
Third measurement, aimed at the one variable the first two could not separate: the debug layer, on and off on the same machine.
Environment.
mainat5a16ee9,devpreset (Debug, Ninja, MSVC Build Tools 2022, CMake/CTest 3.31.6). Windows 11 build 26200, RTX 3070 (driver 32.0.16.2101), Intel i7-10700, DXC from Windows SDK 10.0.26100.0, Python env fromrequirements-dev.txt. Graphics Tools (Tools.Graphics.DirectX~~~~0.0.1.0) installed for this run, no restart needed;offscreen_checkthen printsdebug_layer=enabled. CPU load was about 7% before and after the runs.How the layer was switched. To use one binary for every state, I built
offscreen_checkwith a local two-line patch that is not meant for upstream: if the environment variableX2W_MEASURE_NO_DEBUG_LAYERis set, theID3D12Debugpointer is released beforeEnableDebugLayer(), so the program takes the same path as a machine without Graphics Tools and printsdebug_layer=unavailable.D3D12GetDebugInterfaceis still called in both states. I checked the state in eachctest -Vlog: "off" runs print onlydebug_layer=unavailable, "on" runs print onlydebug_layer=enabled. The order was A/B/A (off, on, off), three runs each:ctest --preset dev --no-tests=error -V -R '^pixel_aot_(hardware|warp)$'pixel_aot_hardwareruns (s)pixel_aot_warpmean / min / max (s)Device creation alone. A small program outside the repo, like the one in the previous comment: in the "on" state it requests the debug interface and calls
EnableDebugLayer(), in the "off" state it does neither; device on the first high-performance adapter (or WARP) at feature level 11_0, one direct queue, exit. Timed per process from outside, 20 runs after one warm-up, in each state:A later interleaved repeat (15 runs per state, alternating off/on) gave the same picture: hardware median 250.0 → 260.6 ms, WARP 25.6 → 27.7 ms.
What I read from this, cautiously:
Raw
ctest -Vlogs and the probe source are available if useful.AI-assisted: run and prepared with the support of Roan System; reviewed before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T12:07:52Z.
I had the same change in progress locally and only now saw #556, which batches the floating-point predicate draws. I'm not opening an overlapping PR. The parts #556 leaves alone are the other three predicate suites in
pixel_aot_predicate_rounding_*: 32-bit integer (33 single-case launches), 16-bit integer (45, plus threemust_mismatchcontrols on mutated shaders that stay single-case) and SDWA (24). Batched per compiled group with the same references, they take 20 launches instead of 102. The signed/unsigned and inverted-unordered SDWA controls stay inside their batch as expected mismatches, each followed by a passing case.Local check on
0f8e7fa: Windows 11 (26200), RTX 3070 (driver 32.0.16.2101) and WARP, debug layer on. All pass, and injected faults fail on both adapters with the case named (i32 emitted as u32, i16 as u16, SDWAnltemitted as orderedge, controls relabelledpass). Wholedraw-predicate-roundingwith the float suite batched as well: 185 → 83 renderer launches. My timings were taken on a loaded machine, so I'll only quote the launch counts.I'd stack this after #556 and reuse its
run_pixel_batch()as it lands, so the two don't conflict. Is that fine with the author of #556, or is a follow-up for these suites already planned? If so, I'll leave it.AI-assisted: prepared with an AI coding agent and reviewed by a human before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T12:12:50Z.
Please go ahead with the three remaining predicate suites. #556 has merged, and I have no overlapping follow-up in progress. Reusing
run_pixel_batch()and preserving the signed/unsigned and unordered mismatch controls sounds like a good fit. I can verify the resulting PR on RTX 4070 and WARP when it is up.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T18:53:33Z.
RDNA 4 timing for the current
draw-coreregistrations inpixel_aot_hardwareandpixel_aot_warp. This was run locally from unmodified upstreammainatedc2e54e7e75fcd7c0f13e98b47ba119d9a08268. AI-assisted report.Ryzen 7 7800X3D, Windows 11 25H2 x64 build
26200.9974, MSVC19.44.35230, SDK10.0.26100, DXC1.8.2502.8, CMake/CTest3.31.12, Python3.12.10. The renderer selected the RX 9070 XT (1002:7550,32.0.32029.2010) and WARP (1414:008c,10.0.26100.9818). Both reporteddebug_layer=unavailable. Normal background services were running.With the local toolchain loaded, the dev CRT DLLs staged beside the renderer, and
$intakePythonpointing to the local virtual environment:For the profile I ran the same
pixel_aot_check.py draw-coreentry point once per backend after the CTest runs, with matching arguments, working directory, and environment. A local wrapper measured wall time around eachsubprocess.runcall. All 127 renderer launches per backend were single invocations (120--check-pixel-case, 5--check-pixel, 2--check-pixel-quad-lod). The renderer timing includes process startup, device setup, drawing, and readback together. There were no timeouts or skips.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T21:39:47Z.
The batching follow-up #697 has merged. It cuts renderer launches from 494 to 263 per backend across eight modes while keeping per-case pass/mismatch checks. On RTX 4050 Laptop, the author measured
draw-coreat 24.11 s (dev) and 24.23 s (/O2). On WARP it was 9.74 s and 9.48 s. We still need a same-machine follow-up on an adapter that previously approached the 60 s cap and evidence for the debug-layer/device-removal cases in the original checklist. If you can retest, please runctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -Von currentmainand report the commit, adapter, driver, Windows build, debug-layer status and elapsed time. #685 covers a separate runner follow-up.Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T23:20:40Z.
Same-machine retest after #697 on the RX 9070 XT, as requested. This is the adapter from my earlier
edc2e54report. AI-assisted; all runs local.Environment: Windows 11 25H2 x64, build 26200.9974. Ryzen 7 7800X3D, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.8.2502.8, CMake/CTest 3.31.12, Python 3.12.10,
devpreset.XBOX2WINDOWS_ADAPTER='RX 9070 XT'selected AMD Radeon RX 9070 XT (1002:7550), driver32.0.32029.2010. Debug layer: unavailable (debug_layer=unavailable; Graphics Tools is not installed on this machine). Normal background services were running.Command, as given, run three times per commit from a clean tree:
787ace7main4c3b573fa52b37So on this adapter, #697 takes
pixel_aot_hardwarefrom about 44 s to about 23.5 s, roughly a 47% reduction. Before #697, the current test content was at about three-quarters of the 60 s cap. My earlier ~20 s figure atedc2e54is not comparable:tests/pixel_aot_check.pyhas grown since then, by 465 lines between4c3b573and787ace7alone, so the pre-#697 cost atfa52b37is the relevant baseline. The time at currentmainmatches4c3b573within noise.My first three runs on
787ace7, before the cache was warm, took 29.40 / 26.48 / 24.30 s. The warm reruns are the ones in the table. There were no failures, timeouts or skips in any of the 12 runs (edc2e54excluded).Not covered: the debug-layer and device-removal cases from the original checklist. The D3D12 debug layer is unavailable here, so this report has no evidence for them.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T23:26:14Z.
Thanks for the same-machine comparison. The three warm RX 9070 XT runs before #697 were 42.63–44.55 s; at the merge they were 23.42–23.62 s, with all runs passing. #685 also merged the explicit pass/skip/fail runner. This issue stays open for the original checklist's case-local debug-layer messages and device-removal behavior. The timing evidence is complete for this adapter.
Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-23T00:09:15Z.
I added a local regression test for the pixel batch runner on
fd2486f427c9d8a99b050bc77abc28c135d03a06plus the test patch. The self-test injected a debug error and a device-removal status. Expected and observed case statuses werepass, error, pass, error, error, error. The runner attempted four draws and made no draw calls for the two cases after removal.On Windows 10 22H2 build 19045.6466, the existing predicate-rounding pixel checks passed on both the RTX 3060 Ti (driver 621.24, DXGI 32.0.16.2124) and Microsoft WARP (10.0.19041.5794). The D3D12 debug layer was unavailable on both runs. CTest reported 3/3 passed, with zero skips. The self-test covers runner logic with injected errors. Live debug-layer and device-removal evidence is still outstanding.
ctest --preset dev --no-tests=error -V -R '^(offscreen_capability_table_self_test|pixel_aot_predicate_rounding_(hardware|warp))$'AI-assisted. All tests ran locally.
Imported from R0Y00/Xbox2Windows. Originally posted by FZNull on 2026-11-23T00:30:12Z.
Another data point for the timeout side of this issue, on the same class of machine but a different adapter/driver than the two above.
Environment: Windows 11 build 26300.9974, NVIDIA GeForce RTX 4060, driver 32.0.16.2124, debug layer unavailable, Windows SDK 10.0.26100.0, DXC 1.9.2609.5, Python 3.13.12. Machine otherwise idle, single
ctestrun (not parallel).A local trial merge of #428 (which adds 4 DPP forms and their draw cases) onto
5a2c782:pixel_aot_hardwarepixel_aot_warpTIMEOUT 60)pixel_aot_check.py draw ... hardwarerun directlymax_absolute_error=0max_absolute_error=0On unmodified main at
5a2c782the same test ran in 59.13 s here and passed, so this adapter sits right at the limit: 1.9 s of extra draw cases push it over. The work is not slow, the device creation is, exactly as measured above.This is a case where the timeout now hides a passing result on supported hardware, so any of the proposed fixes (batch device, higher
TIMEOUT, or splitting the test) would restore a useful signal. A per-caseTIMEOUTthat scales with the case count would also stop the limit from silently creeping back.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T01:42:18Z.
Timing data point at
37ed46d: on an RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974, debug layer enabled),pixel_aot_predicate_rounding_hardwarepassed in 56.4 s in one full run. In a second build from the same base it hit its 60 s timeout twice: once in a parallel run and once run on its own. Earlier on this machine it took about 41.8 s. That mode now runs at or past its timeout on this adapter. AI-assisted (Claude Code).Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T02:22:53Z.
We'd like to take the
pixel_aot_predicate_rounding_hardwaretimeout next: it is now at or past its 60 s limit in the RTX 3080/4060 reports above, and on our RTX 3070 under load. Its cases already go throughrun_pixel_batchper shader since #697, so the first step is to measure where the time actually goes (per-shader compiles, renderer start-up, draws) on RTX 3070 and WARP with the debug layer, then propose the smallest change that brings it back under the limit without touching any case's expected bytes or mismatch controls. I'll post the measurements and link the PR here.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T03:05:24Z.
The timing split sounds good. Please measure the current
run_pixel_batchpath as-is, record serial repetitions on the same build and adapter, and keep the existing per-shader mismatch cases. A split into separate CTests is fine if the timings show one mode is doing too much. Please keep capability skips distinct from timeouts in the results.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T05:03:26Z.
Another data point, from the same RTX 3080 (driver 32.0.16.2124, Windows 11 26200.9974). On plain
333562f,compute_store_aot_hardwarenow hits its 45 s CTest timeout, both run alone and in a parallel run. Run directly it passes in about 57 s (mismatches=0,debug_errors=0). On37ed46dit passed in 35.2 s. AI-assisted (Claude Code).Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T05:35:01Z.
Thanks for isolating
compute_store_aot_hardware. I checked that this fixture has its own 45 s timeout. At333562fthe direct run completed in about 57 s with zero mismatches and debug errors, while CTest timed out both alone and in parallel. That is a separate timing signal from the pixel runner batching. If you still have both builds, could you record three warm direct runs at37ed46dand333562f, with DXC version and debug-layer status, and note whether the extra time is in DXC invocations or the renderer process? The readback checks should stay in place. The case-local debug-layer and device-removal items here are still open.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:18:53Z.
About
compute_store_aot_hardware(35.2 s at37ed46d→ about 57 s now, against its 45 s timeout, on the same RTX 3080). Since37ed46d, six commits touchedtests/compute_store_check.pyor the compute store lowering:405e992,9e1032d,532c951,d8840b5,72c7ae5and2019751. Each one adds cases rather than slowing existing ones. That suggests the test is growing past its budget, not regressing. I have not timed each commit. Splitting the newer cases into their own CTest mode, as was done fordraw-bfmanddraw-e64-integer, would keep each entry under its limit. AI-assisted (Claude Code).Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:19:17Z.
I'll take the
compute_store_aot_hardwaresplit, so it doesn't collide with thepredicate_roundingwork above. The plan is one more CTest entry for the newer compute-store cases, leaving every case's bytes, controls and mismatch checks unchanged. I'll link the PR here.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-23T06:29:50Z.
The
compute_store_aotsplit is in #808. On the RTX 3080 it now takes 35.6 s plus 22.8 s, against 45 s each, with the same cases and controls. The full suite passed there 374/374.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T06:56:11Z.
The compute-store split merged in #808 (
a81b55a). On the reported RTX 3080, the two groups took 35.6 s and 22.8 s under separate 45 s limits, with the same readback cases and controls. Usectest --preset dev --no-tests=error -R '^compute_store_aot(_guard_read)?_hardware$' -Vfor both groups. The case-local debug-layer messages and device-removal checks from this issue remain open.Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T09:31:31Z.
Measurements for
pixel_aot_predicate_rounding_hardware, as promised above. AI-assisted; all runs local, serial, on one build.Environment:
mainat325fe1e, Windows 11 build 26200, MSVC 19.44, Windows SDK 10.0.26100 DXC,devpreset. RTX 3070 (10de:2484, driver 32.0.16.2101) and WARP (10.0.26100.9818), debug layer enabled on both. Idle machine: CPU 7-15 % and GPU 3-7 % before each run.Where the time goes. I wrapped
subprocess.runand thecheck_*helpers of the unmodified module and ranpixel_aot_check.py draw-predicate-roundingwith the CTest arguments, on the currentrun_pixel_batchpath as-is:--check-pixel-batchlaunches (254 cases)--check-pixel-caselaunches (mismatch controls on mutated shaders, single draws)A linear fit over the 80 renderer launches gives 0.246-0.249 s per launch plus 0.028-0.029 s per case on the RTX 3070 (the median single-case launch is 0.27-0.28 s; on WARP it is 0.04 s). So about 20 s (≈64 %) is renderer start-up with the debug layer, about 8 s (≈27 %) is the per-case draw and readback (each case rebuilds its pipeline state and waits for the GPU), and DXC is under 10 %. On the same machine
draw-blend-scalar(65 launches, 206 cases, 24.8 s) anddraw-core(72 launches, 138 cases, 27.7 s) show the same per-launch and per-case cost (0.25 / 0.24 s + 0.03 / 0.04 s);draw-predicate-roundingis simply the largest mode, and it has grown back to 80 launches from the 74 recorded after #697.CTest on
325fe1e: hardware 33.21 / 31.75 / 31.58 s, WARP 9.58 / 9.61 / 12.36 s (the last overlapped a short CPU spike from another process), all passed. Under load the night before, at3cd9df3with the same 80 launches, the same entry took 37-45 s on this machine; load moves the total but not the split.Smallest change. Move the comparison and class draws (f16, i16, i32, u32, SDWA predicates and
v_cmp_class) into their own mode,draw-comparisons, registered aspixel_aot_comparisons_{hardware,warp}with the same 60 s timeout, as was done for the e64 draws, and skip code 77 like the newer entries. No case, reference or mismatch control changes. Comparing every renderer and DXC call by content hash, on both adapters, the two modes together make the same 80 renderer calls (46 + 34) with identical shader and case bytes, exit codes and per-case statuses, and compile the same 84 sources.Each hardware entry goes from 31.6-33.2 s to 15.2-16.9 s here, from 53-55 % to 25-28 % of the limit. All runs passed; no skips and no timeouts, so nothing here mixes the two. A per-process pipeline cache or a multi-shader batch could remove much of the start-up cost for every mode, but it changes the renderer and its batch format, so I'd keep it as a separate follow-up. PR: #831.
Not covered: adapters other than the RTX 3070 and WARP; no live debug-layer message or device-removal evidence.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T09:43:08Z.
#831 landed as
06ee195. The comparison draws now have their own 60-second CTest entry. The RTX 3070 report split the former 31–33 s entry into roughly 17 s plus 15 s while preserving shader bytes, readbacks, negative controls and the union of the coverage records. An RTX 3080 retest near the old timeout would be useful. Runctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -Vand record both elapsed times, the driver and debug-layer status. The broader renderer start-up and device-removal work remains open.Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T16:26:44Z.
Timings on an RTX 3050 6GB Laptop GPU and an Intel UHD Graphics at
c639a01, on AC powerThis is not the RTX 3080 retest asked for above. It is the same command on two other adapters, because on this laptop
pixel_aot_hardwarenow runs close to its limit.Source
c639a01, one build, Windows 11 build 26300.10075, Balanced power plan. The power line read online at 99 % charge at the start, before the timing runs and at the end. Debug layer unavailable on both adapters (debug_layer=unavailable). All runs were serial, withXBOX2WINDOWS_ADAPTERset toNVIDIAorIntel.1.
ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -Vpixel_aot_predicate_rounding_hardwarepixel_aot_comparisons_hardware10DE:25EC), 32.0.16.2114, 3 runs8086:468B), 32.0.101.7092, 1 runAll passed. On the NVIDIA laptop GPU the two entries take 1.9–2.2 times the RTX 3070 figures above, 52–58 % of the 60 s limit.
2.
ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|blend_scalar_hardware)$' -j 1 -V, thenpixel_aot_check.pyrun directly with the CTest arguments, without the CTest timeout:pixel_aot_hardware(draw-core)pixel_aot_blend_scalar_hardwareAll passed. Earlier in the same session,
ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -Vtook 56.09 s on NVIDIA and 50.06 / 47.25 / 45.90 s on Intel, all passed.So
pixel_aot_hardwareused 93.5–97.5 % of its 60 s limit in all four NVIDIA CTest runs, on AC power. On the same laptop and NVIDIA driver, the entry took 45.49 and 46.45 s at787ace7, also on AC. In a full-suite run at34d03c7, on battery, it timed out on NVIDIA.Not covered: where the time goes on this machine (start-up per launch versus work per case), and the RTX 3080. If a split of
draw-corelike #831 would help, I can prepare one and time it on these adapters.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:59:36Z.
Yes, a focused draw-core split is worth trying. The four AC runs at 56.09–58.52 s leave at most 3.91 s under the existing limit. Please keep the current cases, negative controls and union of coverage records, and retain the existing timeout for each entry. Run the old and split selections serially on the same commit and adapter if practical, with at least three NVIDIA runs and an Intel comparison. Record each new entry's time and combined wall time so we can distinguish headroom from a speedup. The device-reuse work can stay separate.
Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-23T21:17:02Z.
RTX 3080 retest of the two entries after the #831 split. All runs are on current
main, serial and local.Environment:
mainat7c04aa0,devpreset (Debug, Ninja), MSVC 19.50.35725, CMake 4.1.2, DXC 1.8.2502.11 from Windows SDK 10.0.26100.0, Python 3.12.10. Windows 11 25H2, build 26200.9974, Ryzen 5 7600X. NVIDIA GeForce RTX 3080 (10de:2206), driver 32.0.16.1088 (610.88), selected withXBOX2WINDOWS_ADAPTER=3080. Debug layer: unavailable (debug_layer=unavailablein every run; Graphics Tools is not installed). CPU load was 7–9% before each run. This is the RTX 3080 from my earlierba7d6b7comment, not the RTX 3080 with driver 32.0.16.2124 and the debug layer from the37ed46dreport.ctest --preset dev --no-tests=error -R '^pixel_aot_(predicate_rounding|comparisons)_hardware$' -Vpixel_aot_predicate_rounding_hardwarepixel_aot_comparisons_hardwareAll 6 entries passed, with no skips and no timeouts. Run 1 was the first after the build and about 1.3 s slower per entry.
For comparison, on the AMD Radeon(TM) Graphics iGPU of the same machine (
1002:164e, driver 32.0.13066.12,XBOX2WINDOWS_ADAPTER=Radeon, debug layer unavailable), two runs gave 10.55 / 10.16 s for predicate_rounding and 10.06 / 9.51 s for comparisons, all passing.Headroom: on the RTX 3080 each entry used at most 14.5 s of its 60 s timeout (24%), leaving about 45 s. The warm runs were at about 13.1–13.2 s (22%). This says nothing about the debug-layer cost on this adapter.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:32:15Z.
The #831 split has the headroom we asked for on this RTX 3080 run: the longest entry was 14.51 s against its 60 s timeout, with all six entries passing. The two Radeon iGPU runs also passed. That establishes per-entry headroom on these adapters. A same-driver before/after comparison would be needed for a wall-time speedup claim. Let's keep this issue open for the device-reuse investigation and use the split entries as the baseline. An Intel run is still useful if someone already has that adapter.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T06:38:08Z.
I'll take the remaining case-local diagnostic and device-removal regression checks. #508 reports both injections in a temporary control build. I’ll turn those into reproducible tests of the same pixel-batch loop using three matching source-built draws. A real D3D12 info-queue error in the middle case should give pass/error/pass; removing the test process's logical device should give pass/error/error. Both batches must exit 1. I'll verify the debug-layer control on WARP and keep capability skips distinct from failures.
AI-assisted (Codex, GPT-6.2 Astra xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T13:43:27Z.
I will measure the existing startup_mrt_check.py fixture on Windows before proposing changes to its shared cache. I will separate time spent in startup_stream_consumer, gfx2hlsl --pending, and FXC/DXC, record the process counts, and check the existing pixel/signedness controls. This follows the MRT profiling question in #2355.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T13:55:52Z.
I measured the unmodified MRT fixture at upstream
01a2197b. Each row below is two complete runs with all pixel, signedness, narrow-format, folding and manifest publication assertions active. Times are in seconds. The pending column includes the translator's own child work.Each FXC run made 22 renderer and 22 direct compiler calls. DXC made 21 of each. Direct compiler time was 0.32–2.07 seconds across these measurements. Local Windows build 26100.9711, RTX driver 32.0.15.9579, WARP 10.0.26100.9711, local debug layer unavailable. The Server WARP fixture reported the debug layer enabled.
The pending logs explain a repeatable part of the cost. The first integer format case creates eight synthetic narrow RTV request markers and directly verifies all eight refusals. Each of the eight subsequent --pending scans sees the same markers again: 64 repeated refusals per fixture. I am testing removal of each fixture-created marker immediately after its refusal and missing-manifest assertions. This keeps the valid-format requests, their publication order, the shared cache and the renderer calls intact. Timing wrapper · Hosted baseline
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:29:26Z.
The targeted MRT fix landed in #2370. In the author's same-runner Server 2025 WARP A/B, the repeated refusal count fell from 64 to zero, and the two compilers' fixture runs were 16.86–18.62 s after the change versus 24.09–29.18 s before. I checked all four FXC/DXC × WARP/RTX paths locally, including the narrow-format refusal and readback controls. This is a fixture result; the author's physical GPU timings overlapped.
The separate compiler-queue change #2368 also landed. The broader device-creation and batch diagnostic work in this issue stays open.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T19:43:37Z.
I can run the outstanding Intel comparison for #831 and #1049 on an Intel UHD Graphics 770, driver 32.0.101.5973, alongside an RTX 4060 on the same Windows 11 machine. I'll use the four registered hardware CTests at
82bb67ef, report serial warm timings and the 60 s timeout margin for each entry, and keep any skips or failing readbacks visible. I can also compare the per-entry form records between the two adapters. The debug layer is unavailable on this machine.I am also taking the first part of the multi-shader device-reuse proposal. I'll try an opt-in
offscreen_check <backend> --check-pixel-pairs <shader> <case> [<shader> <case> ...]using the existing per-case error and device-removal checks. I'll compare each pair with its single-process invocation, including an intentional wrong shader between two passing draws. That gives us a measurable baseline for converting individual Python fixtures.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:15:59Z.
#2525 landed at
42d690a7. The mixed-shader batch now has a separate opt-in renderer entry, with case-local mismatch/error reporting and the existing device-removal control. I verified the four focused Windows Release WARP checks. The remaining throughput question is the full fixture path: compare serial and shared-device runs over the same ordered references, preserve per-case status and form records, and report per-test margin against 60 seconds. Keep the ongoing Intel and RTX comparison in this thread.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T20:17:38Z.
Split GPU timings on Intel UHD 770 and RTX 4060
I ran the four registered hardware CTests serially at
82bb67ef70221f5c2d9a714f1ce379903258793a. The table gives each entry's elapsed time and CTest's total real time, in seconds. Each entry kept its 60 s timeout. The first run on each adapter is shown separately from the three warm runs.I ran the original core selection directly on RTX after the warm-up timeout. It completed in 66.01 s with exit 0 and the identical 1,010-form record. Timing its subprocess calls attributed 21.36 s to 35 renderer launches and 2.87 s to 33 DXC invocations. The remaining wall time includes the Python fixture, host controls and other process overhead. This direct timing used instrumentation and excluded the CTest timeout.
Windows 11 26100.9711, Intel UHD Graphics 770 (32.0.101.5973) and RTX 4060 (32.0.15.9579), debug layer unavailable. DXC 1.9.2609.5 and CTest 4.1.2. I alternated adapter order and ran only one GPU workload at a time. The Debug executable and CMake-generated registrations came from the pinned dev build (static Debug CRT). I checked the artifact hashes and relocated the source, Python, DXC and renderer paths. Build and registrations
The multi-shader operation merged in #2525. The follow-up in #2541 runs the 32-bit integer predicate groups on one device. On Server 2025 WARP, both versions produced identical HLSL inputs, DXIL, reference bytes, per-case outcomes and all 49 subgroup forms. The full comparisons CTest also passed with 160 forms.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:01:27Z.
I found a local way to recover headroom for the existing 60-second core test on the two adapters from the 32-run matrix. The Windows CTest starts Python with
-B, which permits reading an existing bytecode cache. I primed the test module and its imports in a build-local cache, then ran the registered test with the same environment. Python 3.14.3 saw all 24 logical processors throughout the GPU runs.At
82bb67efwith the same registered command, renderer, DXC, and 60-second timeout, the initial import took 5.75 s once. Warm-cache times in seconds:All six runs retained the exact 1,010-line coverage record from both earlier successful runs, SHA-256
0d14bba50cf16622c11e42d42be8d681573460bb55728e4ecb80c3aeee8cf469. The two series ran at different times on the same Windows 11 machine, build 26100.9711, debug layer unavailable. Each test ran serially.I also isolated the Python side on newer main
e9ae884fusing the normal device-free entrypython -B tests/pyc_main.py pixel_aot_check. With an intentionally empty cache, the three runs took 39.57–40.69 s for 24 logical processors and 17.33–18.12 s for four. With a preloaded cache the corresponding results were 4.94–5.03 s and 4.74–5.12 s. All 12 coverage files matched byte for byte. The cache accounts for the large difference on this host without changing the worker count used for the hardware tests. I'll document the optional local command alongside the existing draw-core reproduction.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:15:20Z.
Claiming: speed of startup_storage_worker_start + startup_heartbeat_commit (one family PR, test-only).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:17:19Z.
Claiming speed item: compute_store_aot_descriptor_load_format_warp (tests/compute_load_format_check.py draw: cut remaining serial launches, same checks).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:06:10Z.
Claiming speed item: startup_mrt_fxc_warp + startup_mrt_dxc_warp (tests/startup_mrt_check.py: run the 6 integer-format cases in parallel, private cache per format, test-only).
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T22:45:52Z.
I’ll measure a follow-up to the merged #2568 using the same
compute_store_aot_descriptor_load_format_warpfixture. Its six workers retain a separate renderer process and D3D12 device for each dispatch. Twenty-one of the 32 dispatches use the same compiled shader (seven matching references and fourteen intentionally wrong ones).I’ll compare that version with a prototype that reuses one device for those 21 cases and leaves the eleven independently compiled shader mutations intact. I’ll check the same case order, individual mismatch diagnostics, and a device/error case. I can run WARP, RTX 4060 and UHD 770 on the same Windows machine and post the timings even if reusing the device loses to six parallel workers.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T23:20:47Z.
I measured the follow-up to #2568 on the full
compute_store_aot_descriptor_load_formatfixture. Sharing only the device slowed down all three desktop adapters. Sharing the fixed shader's root signature and compute pipeline as well reduced the median on all three and on hosted WARP.Each desktop column is a separate experiment with its own baseline. On Windows 11 build 26100.9711 I warmed both implementations, then ran three timed pairs on each adapter with the same renderer binary for both sides. Desktop driver versions were 32.0.15.9579 (NVIDIA), 32.0.101.5973 (Intel) and 10.0.26100.9711 (WARP). The desktop debug layer was unavailable. The hosted figures are medians of three interleaved runs per implementation on one runner. Windows build and raw CTest output
The fixture goes from 32 renderer launches to 12. All 21 fixed-shader references get fresh buffers, a separate dispatch and a fenced comparison of all 320 words. On each desktop adapter I compared the bytes of the 32 case inputs, the 12 HLSL and DXIL pairs, and the individual statuses, mismatch counts and first differing words. All matched. A one-byte reference between two passing inputs returned
pass/error/passand exit 1. In a separate hosted debug-layer control, an injected D3D12 error affected only the middle case and actual device removal failed that case and the next one. Debug-layer controlsThe candidate retains the per-case labels and the renderer's debug output. Its Release checks and timings also exercise the other root signatures and image paths that use the compute helper.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T23:40:47Z.
I’ll take the heap-view load fixture as a follow-up to #2615. The Windows receipt on that PR puts
compute_store_aot_heap_view_load_warpamong the slower cases. Its matching references for one- and two-group dispatches reuse two shaders (XY and XYZW). I’ll measure batching references by shader, preserving the independently compiled mutations and per-slot failure diagnostics. I also noticed four zero-publication controls in the current source while the summary counts three. I’ll reconcile the summary with the actual case stream and compare the inputs and first wrong words on WARP and hardware before proposing the change.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:15:51Z.
The heap-view load follow-up #2635 is on
mainat8ecaa8ec. It reduces this fixture from 77 renderer launches to 16 while retaining all 77 observed records, including 14 separately compiled mutations and the seven wrong-reference checks. The PR's paired Windows Server WARP median went from 11.51 s to 7.87 s. The latest Windows receipt also passed all four adjacent checks in Debug and Release. Please keep any next batching slice anchored to an identified fixture and its per-case mismatches.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T00:21:11Z.
I’ll measure
compute_store_aot_heap_view_store_warpand its hardware counterpart next. The four-check run for #2635 recorded 12, 12, 16, 17 and 17 matching cases across UINT4 and four D16 stores, plus 52 independently compiled shader mutations. Each mode currently starts a process for every fixed-shader reference. I’ll compare one batch per mode, keeping each mutation and its required first-word diagnostic, the 320-word sentinels, and the hardware capability skip. I’ll report the full-fixture timings and compare the individual readbacks before proposing a change. Original runImported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T01:11:59Z.
The heap-view store result is in merged PR #2654. Its 126 readbacks and 52 shader mutations matched on WARP, an RTX 4060 and a UHD 770. Three-pair medians fell by 28.9%, 36.6% and 37.6% respectively.
I’ll measure the fixed-shader references in
startup_vertex_fetch_formats_{warp,hardware}next. On current main the TBUFFER section starts 50 renderers for 14 matching references and 36 deliberately wrong references over the same 14 shaders. I’ll test one batch per format against the separate runs, retaining the predicted first wrong word, 320-word guard checks, and the fixture’s existing skip behavior. The 15 shader mutations and the later descriptor-driven cases have separate coverage. #2006 extends the format table and decoder. I’ll check that the batching handles its additional format and compare the full-fixture timings before proposing a change.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T02:41:09Z.
I will take the compiler reuse follow-up to merged #2690. The full vertex-fetch fixture calls DXC 186 times. I will compare every distinct stage and complete input, its DXIL hash, all 129 readbacks and first mismatches, and paired wall time on WARP, RTX 4060 and UHD 770. The cache lives in one fixture invocation.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T06:50:27Z.
Claiming a generic follow-up for the per-case process cost: an offscreen_check --serve mode that runs any operation case after case on one device, adopted first by the flat-param, pixel-words and image-sample draw checks (builds on #2635, #2654, #2690, #2711). Draft PR soon.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T08:39:36Z.
I will take the remaining compile cost in
startup_gfx2hlsl_f16_alu_drawmentioned in #2766. I will measure which FXC/DXC inputs repeat, reuse or queue independent compilations within the fixture, and compare shader bytes, case order, wrong-word controls and paired elapsed times with the current suite. GPU draws will still execute in their original order.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T03:31:41Z.
Closing: the proposal is done. Per-case device creation is gone from the large draw fixtures:
offscreen_checkserve mode: #2766.Fixture-specific speedups (#808, #831, #2370, #2568, #2635, #2654, #2690) landed along the way. New slow fixtures can get their own issues.
AI-assisted.