Repository navigation
Conversation
…-oom dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
ufoptg
pushed a commit
that referenced
this pull request
Nov 27, 2026
gpu_sparse_vram_descriptors_buffers_and_xmem left SOFFSET unset on its three S_LOAD_DWORD* instructions. The field is then 0, which is s0, so every load added s0: the low half of arg_table's address. That is 0 only while arg_table is the first allocation in the coherent window. After an earlier uma.alloc (placed_title_textures_share_vram_and_preserve_pixels takes 16 MiB there) the descriptor loads read s0 bytes past the heap and out_buf stayed 0: "submit 1 lane 0 mismatch", left 0, right 1077. They now pass SOFFSET = 125 (no register), as the other SMEM tests do. Part of #343 Assisted-by: Claude Code (Claude Fable 5.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
MapTitlePhysicalPagescall toldsparseabout every 64 KiB page it mapped in a sparse window on its own: oneUpdateTileMappingsand one fenceSignalper page, about 0.5 ms a page on NVIDIA. In Series S mode (device_type = "lockhart") the retail title maps about 3.6 GB in one call at boot. Its main thread stayed in that call for 24 s, and the title's stall check ended it with the null write at+0x2215c35at 34 s, before the first frame.map_pagesnow gathers neighbouring sparse pages into runs and commits each run with onesparse::committedcall. A run is committed early whenever the same call is about to decommit one of its pages: a page moving away from an address still in the run, or homes being given back. Part of #232.What is in it
crates/xcl/src/hle/kernelx.rs:SparseRun(add / holds / flush) used bymap_pages, flushed beforemove_away/move_home_awaycan decommit a page in the run, on both error returns and at the end of the call.GIVE_BACK_PAGESnames the existing 4096. Unit testsparse_pages_are_committed_once_per_run.Tested
cargo test --workspace -- --test-threads=4with DXC 1.9.2609 (XCL_DXC_DIR): 892 passed, 0 failed, 42 ignored.SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(needs Developer Mode).scripts/smoke.ps1 -Seconds 120, sparse pools from theXCL_ACTIVITYmemory lines:main4178e88: sparse pools grow 256 MB every 2 s from 10 s to 34 s (3648 MB), no present, then0xc0000005at+0x2215c35at 34.3 s.0x80000003at+0xcc2834), which this PR does not touch ([upstream #1918] D3D12.X: a huge compute program the driver refuses is logged with its verdict #242 / D3D12.X: promote R9G9B9E5_SHAREDEXP render/UAV targets to R11G11B10_FLOAT xcl-dev/xcl#605 address it).Regression run
main (
4178e88):this PR (
f03d411):Both runs loaded DXC 1.6 from the Windows SDK: the DXC 1.9 folder is on
D:, which the defaultD:console mount hides onmain(xcl-dev#833).Not tested
UpdateTileMappingscost per call is as high.AI use
Mirror of xcl-dev#1792 (auto-synced, do not edit).