Repository navigation
D3D12.X: a new kind of translation error is logged after the first 40 - #1752
tippythetaidum wants to merge 1 commit into
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
note_translation_error logs, and keeps for report.json, only the first 40 distinct reasons. A retail title's 40 "MS in the AS slot" refusals, one per shader hash, use them up within ~9 s of starting, so nothing that fails later leaves a trace. In a 240 s run on main c160d86 (RTX 5080) the report counted 4 failed background pipeline builds and listed no reason; with the cap lifted locally, the reason was the driver's E_OUTOFMEMORY for a translated compute PSO at world loading, whose dispatches were then skipped. The first 40 reasons are kept as before. Past them, a reason is still logged and kept when its kind is new: its text with shader hashes (16 hex digits) and plain numbers left out. HRESULTs stay in the kind. At most 120 reasons are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
947c2d3 to
cf84f9b
Compare
|
Rebased onto main On Claude Code, Claude Opus 5.5 wrote this update; the account owner directed the work. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Status update before I step away from XCL work.
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. |
note_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