Skip to content

tests: reuse identical DXC inputs in the vertex-fetch format fixture - #2711

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
RavenCurseBurg:tests/reuse-vertex-fetch-compiler-inputs
Nov 26, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
RavenCurseBurg:tests/reuse-vertex-fetch-compiler-inputs

Conversation

@RavenCurseBurg

Copy link
Copy Markdown
Contributor

Change

Compile each complete vertex and compute input once per startup_vertex_fetch_formats invocation. 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 a3b923e1 with b8468aaf, 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.

Adapter Warm-up, before / after Three measured baselines Three measured candidates Median before → after Change
WARP 26.486 / 22.897 27.025, 25.894, 26.189 22.765, 23.152, 20.906 26.189 → 22.765 -13.1%
RTX 4060 48.757 / 47.575 39.738, 42.203, 41.324 41.025, 38.642, 36.602 41.324 → 38.642 -6.5%
Intel UHD 770 43.734 / 39.663 47.148, 39.624, 42.490 38.284, 36.542, 39.112 42.490 → 38.284 -9.9%

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).

@R0Y00
R0Y00 merged commit 817396a into R0Y00:main Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants