Skip the compile-time check on a DXC without -ftime-report #1386
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1393"
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 FoxxoOwO on 2026-11-24T10:22:42Z.
What
dxc_compile_time_gvnfails on a DXC older than 1.7.2212 with-ftime-reportarrived in DXC 1.7.2212 (December 2022,microsoft/DirectXShaderCompiler#4736).
The 1.6.2112.16 build that ships with Windows SDK 10.0.22621 has no such flag,
so the check cannot measure pass attribution at all — it never reaches the GVN
profile it is asserting.
The check now probes the flag on the fixture control shader and, when the
compiler itself reports it as an unknown argument, prints
SKIP: this DXC has no -ftime-report; pass attribution cannot be measuredandreturns 77, which
CMakeLists.txtalready declares as this test'sSKIP_RETURN_CODE.AGENTS.mdnames the DXC version that supports the flag.Why the probe cannot hide a real regression
The predicate looks only at the compiler's own diagnostic text, and its two
directions are asserted in
check_parser(), so a compiler that works can neverbe turned into a skip:
fouris a real 4-column-ftime-reportdump, and an unrelated unknown-argumenterror must not trip the probe either. The existing "this DXC no longer shows the
GVN profile" path still returns 77 for a
-ftime-report-capable compiler, andevery other mismatch still fails.
Reproduction
Before:
1/1 dxc_compile_time_gvn ... ***Failed 0.45 secAfter:
1/1 dxc_compile_time_gvn ... ***Skipped 0.19 secDirect run on this toolchain:
The probe's predicate was also checked in both directions against synthetic
compiler output:
supported -> Truefor a timer dump,unsupported -> Falsefor the unknown-argument error.
Still passing on the same toolchain, so the flag-based attribution is the only
thing skipped:
dxc_gvn_output_warp,dxc_gvn_output_hardware(they compilecondstore_256with and without GVN and compare the whole raw UAV bit for bit)and the 41 pure-Python checks in
AGENTS.md.Environment
MSVC 19.44.35230.0 · Windows SDK 10.0.22621.0 (DXC 1.6.2112.16) · NVIDIA
GeForce RTX 3070 Ti, driver 32.0.16.2124, debug layer unavailable · Windows 11.
Not measured: a DXC with
-ftime-reporton this branch. There is none onthe machine that produced this PR, so the "flag is supported, keep checking"
path is covered only by the synthetic predicate assertions above, not by a real
1.7+ run. Reviewers with SDK 10.0.26100 or the NuGet DXC can confirm it in one
command.
Separate from #1369 (SDK 10.0.22621 build blockers); this change touches only a
Python check and
AGENTS.md, and needs no rebuild.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T10:44:33Z.
Review: COMMENTED
Dual-platform peer review of #1393 (
ba073fca):Checks
git diff --check origin/main...HEAD: clean.tests/docs_links_check.py: passed (Checked 16 Markdown files and 301 links.).tests/bidi_controls_check.py: passed (Checked 1145 tracked source, script and build/CI files: no bidirectional controls.).py_compileontests/dxc_compile_time_check.py: passed.x2w_pipe.py win2025 1393 --regex '^dxc_compile_time_gvn$'):--preset dev): 1/1 passed (2.25s:dxc_compile_time_gvn)./O2,--preset release): 1/1 passed (2.23s:dxc_compile_time_gvn).Audit notes
tests/dxc_compile_time_check.py:check_sources()andcheck_parser()still run unconditionally beforecheck_dxc(), andrejects_ftime()requires both"Unknown argument"and"-ftime-report"in the output (verified with negative/positive parser assertions incheck_parser()). On DXC builds that support-ftime-report(such as Win2025),ftime_supported()returnsTrueand all outcome/timeout/diagnostic/GVN-share checks execute normally.AGENTS.md: documents the DXC 1.6 / Windows SDK 10.0.22621 capability skip (77).