tests: reuse identical DXC inputs in the vertex-fetch format fixture #2703
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2711"
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 RavenCurseBurg on 2026-11-26T03:06:33Z.
Change
Compile each complete vertex and compute input once per
startup_vertex_fetch_formatsinvocation. Several descriptor cases use different data with an identical vertex program. Some of them use different readback wrappers, so the compute cache key includes the wrapper. Each entry is specific to its shader profile and private temporary directory. The binary is published after DXC exits successfully.Readback and compiler equivalence
I compared main at
a3b923e1withb8468aaf, independently for WARP, RTX 4060 and Intel UHD 770. Each fixture run issued 93 renderer launches and 129 readbacks of 320 words. The 54 successful and 75 deliberately mismatched records matched the baseline, including the shader and input hashes, mismatch counts, and first differing word, expected value and actual value.Each baseline invoked DXC 186 times. The candidate invoked it 136 times and produced exactly the same 136 unique pairs of complete HLSL input and DXIL output hashes. The shader mutation cases still run individually. Independent controls changed just the wrapper, changed the vertex source, and made DXC leave a partial output and fail on the compute stage before a retry. The completed shader remained available and the retry compiled the missing stage. All 18 fixture-level skip/error controls passed.
Wall time
I ran eight full fixtures per adapter, sequentially. The first baseline and candidate runs warmed each path. The next three pairs alternated order (base/candidate, candidate/base, base/candidate). Times below are seconds.
The GPU workload was reserved for this series. Some small host checks and a local C++ build ran during this time. Use the individual samples when comparing with other hosts.
Times use the full fixture's normal entry point on Windows 11 build 26100.9711 with DXC 1.9.2609.5, renderer
76dd27e1, debug layer unavailable. WARP 10.0.26100.9711, RTX 4060 driver 32.0.15.9579, UHD 770 driver 32.0.101.5973. The expectation is a reduction in repeated compiler work. Individual wall times include driver startup and vary between runs.Refs #448. Follow-up to #2690. AI-assisted contribution using Codex (GPT-6.2 Astra, xhigh).