Shaders: reject invalid direct shader hash filters #1754
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1754
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1754/head"
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?
@NemesisDawn on GitHub · 2026-11-24 20:16 UTC · original
NemesisDawn:fix/direct-shader-hash-validation→main· +44 −3 · 2 files · 1 commits · closed without mergingReject missing or malformed
--hashvalues before a direct shader sweep. Bare hexadecimal and both forms of the0xprefix remain supported.What is in it
crates/xcl/src/shaders.rsvalidates the filter.crates/xcl/tests/shaders_e2e.rsadds a regression test.Tested
aa0f52f, the direct hash regression passed on Windows using a standalone fixture compiled withrustc1.100.0. The fixture exercises the argument-validation code with stubbed shader dependencies.Regression run
mainand this PR’s commit.Not tested
AI use
@Anon64 on GitHub · 2026-11-24 20:28 UTC · original
Regression run for this PR: head
aa0f52f, based onmain9039900. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, back to back with themainrun.main
9039900:this PR:
No device removals or crashes; 115 % of main's frames, 112 % of its peak commit.
Peak commit on this machine is mostly the pipeline preload's DXC compiles (#1035) and varies a lot from run to run, so it says little about this PR.
Not tested: the whole suite; the
xcl shadersdirect-dump path this PR changes (the title run does not use it).Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@futurepro62 on GitHub · 2026-11-24 21:19 UTC · original · edited 2026-11-24 22:00 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
aa0f52f(on its base9039900).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 858 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.direct_sweep_rejects_invalid_hash_filters.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:04 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
mainincrates/xcl/src/shaders.rs— needs a rebase before it can be tested.@JJAutoCompare on GitHub · 2026-11-25 04:09 UTC · original
XCL PR #1754 Windows / Intel Arc verification
Clean detached head
aa0f52f86fe725d3c76172219c846a6f9fd17052on STOR-WINLAB. Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 (16,258 MiB reported VRAM), driver 32.0.101.9175, DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386 2026-11-09, x86_64-pc-windows-msvc). Dev and test profiles were unoptimized, with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the Arc lock. Both reported twoAtomic::fetch_updatedeprecation warnings.cargo test -p xcl --test shaders_e2e direct_sweep_rejects_invalid_hash_filters -- --exact --nocapturewithXCL_ADAPTER=NONE_CPU_ONLYreported 1 passed, 0 failed, 0 ignored, 0 explicit skips. The new CLI integration test passed here and in the workspace suite. It verified exit 2, empty stdout, and a diagnostic for missing, empty, nonhexadecimal, and overflowing hash arguments. On two synthetic files, plain hex and both prefix forms (0x,0X) selected the two-record search. The no-hash control reported one sampled record.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. It exited 101. Across 19 test binaries and one doctest harness,pr1754-suite.logrecorded 841 passed, 18 failed, 42 ignored, and 6 explicitSKIPPEDlines.Workspace failures and skips
Thirteen GPU unit tests reported
CreateComputePipelineStatereturning0x80070057. Four others reported mismatches in FMA, implicit texture LOD, f16 lane preservation, and wave64 pixel reduction. The test-title e2e failed itsRSSetDepthBiasXcheck (blue pixel, expected green). Explicit skips cited missing wave64 (2), D3D12 debug layer availability (2), tiled-resource tier below 2 (1), and no heap windows (1). Those skips provide zero coverage.Not tested
Matched main baseline, retail-title smoke and shader hash matches on retail data, optional
XCL_SAMPLE_*fixtures, and other GPU adapters.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1754-suite.logand published.@Prime1997 on GitHub · 2026-11-26 01:19 UTC · original
Closing because main already rejects invalid
--hashvalues, from9a7e0edd("CLI: reject unknown options and invalid values in xcl rpf and xcl shaders", #2266, merged via #2285).xcl shadersnow parses--hashwithcli::parse_hex_u64. That accepts an optional0x/0Xprefix, requires 1 to 16 hex digits, and refuses a missing value or a following flag, which covers what this PR adds.Compared at head
aa0f52f8against main08db802. Reviewed with Claude Code (Claude Opus 5.5); I checked the comparison before closing.Pull request closed