Repository navigation
tests: reuse identical DXC inputs in the vertex-fetch format fixture - #2711
Merged
R0Y00 merged 1 commit intoNov 26, 2026
Merged
Conversation
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).