Repository navigation
Conversation
|
The AMD native wave64 run listed as untested, plus an RTX 3060, paired against Head
Per-test comparison: on both cards the only difference is the new Not tested: a title with |
|
Full workspace run on this head (listed under Not tested). Two failures, both also on the PR's base, so not from this PR. Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 2a6d713, base f087b99. Result: cargo test --workspace -- --test-threads=4: 1173 passed, 2 failed, 26 ignored. gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator (left 68, right 1) AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
Two contributors checked independently and found that #1913 solves the same problem (for #1895) in a different way: #1607, group D74. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Test report for Tested
The 2 failures are in this PR's base, not in its change. Both fail the same way on its merge base Regression run (retail title, main: this PR: Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request. |
|
Comparison for #1607 (group D74: #2252 vs #1913): Both PRs are
Only one of the two should be merged - if maintainers prefer #1913, I'm happy to close #2252 in its favour. |
What is in it
Fixes the remaining item (item 1) of #1895 (item 2,
XCL_DXIL_NO_OPT, was already merged in #2013):crates/xcl/src/gpu/dxil/kernel.rs: intranslate_on_this_thread, when lowering aVertexorPixelentry witho.wave64 && o.split(32-lane hardware waves such as NVIDIA), runupper_lanes::analyze(&cfg.insts)and refuse the shader ("wave64 VS / PS in 32-lane waves: a read of lanes 32–63") if any read is non-Native(matchingrecomp::lower::lower_graphics).crates/xcl/src/gpu/recomp/pso.rs: passsplit_wave64fromcompile_console_shaderintodirect_graphicsand setsplit: wave64 && split_wave64inKernelOptionsinstead of hardcodingsplit: false, soXCL_DIRECT_DXIL=allfalls back to the HLSLupper_lanespath instead of caching broken wave64-only DXIL under thesplit=1disk cache key. Modifyingkernel.rsalso advancesXCL_DIRECT_DXIL_SOURCE_IDautomatically so staleXCL_DIRECT_DXIL=allcache entries are invalidated.crates/xcl/src/gpu/dxil/coverage.rs: stop overridingsplit: falseforMode::Vertex/Mode::Pixelintranslate_modeso--direct --split 1accurately reports 32-lane graphics refusals.crates/xcl/src/gpu/dxil/core_tests.rs: addwave64_graphics_with_upper_lane_reads_refused_in_32_lane_modecoveringtranslate_vertex,translate_pixel, andcoverage::translate_modefor bothsplit: trueandsplit: false, with and without upper-lane reads.Impact on a 2,000-program sample (
--direct --sample 2000 --max-bytes 0, seed 1):--split 1(32-lane waves): 50 of 874 pixel shaders (5.7%) that read lanes 32–63 are now cleanly refused (wave64 VS / PS in 32-lane waves: a read of lanes 32–63) instead of silently emitting broken wave64-only DXIL; the remaining 824 PS and 178/178 VS still translate directly (1950 / 2000 total, 0 panics).--split 0(native wave64): 2000 / 2000 (100.0%) still translate directly (no change on native wave64).Fixes #1895.
Tested
rustc 1.100.0, DXC /dxil.dll1.9.2602.17, debug & release builds.cargo test -p xcl --lib gpu::dxil::core_tests: 16 passed, 0 failed, 1 ignored (including newwave64_graphics_with_upper_lane_reads_refused_in_32_lane_mode).cargo test -p xcl --lib gpu::dxil::coverage: 5 passed, 0 failed.xcl shaders <pack> --direct --split 1 --sample 2000 --max-bytes 0: 1950 / 2000 translated, 50 PS refused forlanes 32–63, 0 panics.xcl shaders <pack> --direct --split 0 --sample 2000 --max-bytes 0: 2000 / 2000 translated, 0 panics.Regression run
Baseline (
main568e7db):PR (
2a6d713):Not tested
--split 0translation coverage verified locally on NVIDIA).cargo test --workspaceonf087b99(currentmainhas 2 pre-existing unrelated unit-test failures indevice_x.rs— tracked by Tests: align device_x UAV strip and pso cache marker tests with main #2233 — andpso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator).AI use
upper_lanesguard inkernel.rs, threadingsplit_wave64throughpso.rsandcoverage.rs, writing the unit test, and running the sweeps and smoke test.