Repository navigation
MS and GS programs translate with the title's memory windows - #124
Merged
Merged
Conversation
translate_mesh / translate_geometry used one memory window while VS / PS / CS get the title's four (pso::mem_windows): an NGG or legacy GS program reading title memory above the first window (a V#, an SGPR pair or a 64-bit address there) read window 0 at the same offset instead. pso::console_mesh / console_geometry pass the title's windows now, and --precompile translates MS programs with them too. gpu_mesh_mode_reads_memory_windows runs an NGG program's compute pass on unified memory with its vertex table in window 1 and decoys at the same offset in window 0: four windows read the table, one window (the old translation) the decoys. The GS test also translates with four windows and compiles the result. This changes these programs' HLSL, so their DXIL is compiled again once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
|
Merged. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: |
JR-Wiederkehr
pushed a commit
to JR-Wiederkehr/xcl
that referenced
this pull request
Nov 25, 2026
…ecuteIndirect) Supersedes xcl-dev#724; its commits are kept with their authors. Conflicts: - bind.rs State keeps the tree's heap_bound and xcl-dev#1803's heaps next to the record buffers and scratch; reset clears the heaps and holds the record buffers for the old allocator; forget takes the state out of the sharded map (bind::STATES) and holds its buffers. HashMap is imported again for the PR's maps. - console_list.rs Layout keeps xcl-dev#1803's heaps and the PR's inline_ms; with_heaps and user_data_ms both stay. - device_x.rs keeps xcl-dev#1887's log of a refused signature and the PR's companion Dispatch signature; the CreateCommandSignature doc is back above its function (the merge had put it above indirect_arg_bytes). - real.rs console slots keep the tree's #131 / xcl-dev#132 FlushCacheRange and the PR's DispatchMesh at xcl-dev#127. - list_x.rs: the PR's bound_heaps test helper removes the list from its own part of the sharded recording map. DispatchMesh slot: xcl-dev#1984 mapped the newer layout's xcl-dev#129 to the older xcl-dev#126, this PR to xcl-dev#127, where it hooks DispatchMesh. Kept xcl-dev#127: it is the shift of two slots the other methods have, and xcl-dev#1984's own reading of the newer layout (xcl-dev#126 / xcl-dev#127 the shading-rate methods, the older xcl-dev#124 / xcl-dev#125) puts its xcl-dev#128 at the older xcl-dev#126. xcl-dev#1984's test is rewritten for (129, 127) and checks that the older slot runs bind::dispatch_mesh. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Follow-up to the question in #113:
translate_mesh/translate_geometrytranslated with 1 memory window while VS / PS / CS get the title's 4 (pso::mem_windows). An NGG or legacy GS program reading title memory above the first window (a V#, SGPR pair or 64-bit address there) read window 0 at the same offset instead.Change
translate_mesh/translate_geometry: takemem_windows.pso::console_mesh/console_geometrypassmem_windows().--precompile: translates MS programs with the title's windows as well, as the runtime now does.xcl_vin, read in the entry before any window is selected) still reads window 0, as before.Test
gpu_mesh_mode_reads_memory_windows: an NGG program's compute pass runs on unified memory (runner::run_in_arena, 2 windows). Its V# points at a vertex table in window 1, with decoys at the same offset in window 0. Translated with the windows, the record gets the table. Translated with one window (the old translation), it gets the decoys, so the test fails without this change.gpu_geometry_wave32_prefix_count_over_a_maskalso translates its ES+GS program with 4 windows, checks that all four are declared, and compiles it.cargo test --workspace --releasewithXCL_SAMPLE_RPF(the retail pack) on an RTX 5070 Ti: 528 passed, 0 failed, 2no wave64skips as onmain. The new test also passes withXCL_SPLIT_WAVE64=1.🤖 Generated with Claude Code