D3D12.X: a new kind of translation error is logged after the first 40 #1752
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!1752
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1752"
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?
@tippythetaidum on GitHub · 2026-11-24 20:15 UTC · original
tippythetaidum:d3d12x/translation-error-kinds→main· +88 −1 · 1 files · 1 commits · opennote_translation_errorlogs, and keeps forreport.json, only the first 40 distinct reasons why a pipeline's console shaders got no translation. A retail title's minimap pipelines give 40 refusals of the form "mesh pipeline with its MS in the AS slot – refused", one per shader hash. They use up all 40 places within ~9 s of the start. Nothing that fails after that leaves a line in the log or an entry inreport.json.In a 240 s run on main
c160d86the report counted 4 failed background pipeline builds (background_pipelines: [1186, 4, 57572]) and listed no reason. In a local build of main with the cap lifted, the reason turned out to bethe driver rejected the compute PSO with the translated CS (0x8007000e)at 87 s, during world loading. That pipeline's dispatches were then skipped. #1300 adds a log line for that one path (the driver's refusal of a compute PSO). This PR is about the cap itself, so that no new kind of failure is hidden behind 40 of another.The first 40 reasons are kept as before. Past them, a reason is still logged and kept when its kind is new. The kind is the reason's text with shader hashes (16 hex digits) and plain numbers left out. HRESULTs (
0x…) stay in the kind, so a different HRESULT is a different failure. At most 120 reasons are kept.What is in it
crates/xcl/src/hle/d3d12x/real.rs:keep_translation_error()andtranslation_error_kind(), used bynote_translation_error. Tests intranslation_error_tests:a_new_kind_of_error_is_kept_after_forty_of_another: fails on main, where the 41st reason is never kept.the_first_forty_reasons_are_kept_as_before.at_most_120_reasons_are_kept.a_kind_leaves_out_hashes_and_numbers_only.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4oncf84f9b: 963 passed, 0 failed, 43 ignored.c4d37be: 958 passed, 1 failed, 43 ignored. The failure istest_title_draws_with_a_root_signature_under_the_debug_layer: its test title made no progress for 10 min and I ended it. That test passed on main6c89285on this machine, so it is intermittent here. It did not hang on this PR's head.c4d37be:no wave64: the wave64 variants ingpu::recomp::lower/lower_dxil, plusgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.refused (… #1426 semantics differ from the console's), inlower_dxil::tests::f16_programs_on_the_gpu/f32_programs_on_the_gpu.heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=240,XCL_PRESS_A_ATevery 4 s from 16 to 120 s, on947c2d3. That is the same change before its rebase ontoc4d37be. The run ended at 240 s with no crash. No build failed (background_pipelines: [1697, 0, 57066], 0 DXC failures), so the run produced no reason past the first 40, and it does not show the new path in use.Regression run
main
c4d37be:this PR
cf84f9b:Run back to back, main first. Within 60 s the title's own progress varies between runs, and peak commit follows it. An earlier pair at
6c89285/947c2d3had main 1510 frames / 15459 MB and this change 1296 / 27039 MB. A second pair at the same commits had main 1353 / 25937 MB and this change 1631 / 15277 MB.Not tested
AI use
🤖 Generated with Claude Code
@tippythetaidum on GitHub · 2026-11-24 21:47 UTC · original
Rebased onto main
c4d37be. The head is nowcf84f9b, with the same change and no conflicts.On
cf84f9b, RTX 5080,cargo test --workspace --no-fail-fast -- --test-threads=4: 963 passed, 0 failed, 43 ignored (mainc4d37be: 958 passed, 1 failed, 43 ignored; the failure is the intermittenttest_title_draws_with_a_root_signature_under_the_debug_layerhang, described in Tested). A new back-to-back smoke pair againstc4d37beis in the description: 1305 frames / 30137 MB against main's 1278 / 27825 MB, no crash or device removal.Claude Code, Claude Opus 5.5 wrote this update; the account owner directed the work.
@futurepro62 on GitHub · 2026-11-24 21:18 UTC · original · edited 2026-11-24 21:59 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
947c2d3(on its base6c89285).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: 866 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_new_kind_of_error_is_kept_after_forty_of_another,the_first_forty_reasons_are_kept_as_before,at_most_120_reasons_are_kept,a_kind_leaves_out_hashes_and_numbers_only.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 867 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), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@tippythetaidum on GitHub · 2026-11-25 11:23 UTC · original
Status update before I step away from XCL work.
cf84f9bstill merges cleanly intomain426a5a7(git merge-tree --write-treeexit 0). Onmain,note_translation_errorstill keeps only the first 40 distinct reasons (g.len() < 40).79fde18(merged) now logs a huge compute program's driver refusal itself. That covers the case that led me here. This PR still covers every other kind of failure that comes after the first 40: CS translation errors, other driver refusals, and mesh / stream refusals.I won't be iterating on this PR. Maintainers can push to the branch: please rebase, adjust or close it as you see fit.
Claude Code, Claude Opus 5.5 wrote this comment; the account owner directed the work.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.