MS and GS programs translate with the title's memory windows #124
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!124
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/124/head"
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?
@Foniass on GitHub · 2026-11-23 13:31 UTC · original
Foniass:fix/mesh-gs-windows→main· +82 −18 · 5 files · 1 commits · merged 2026-11-23 14:13 UTCFollow-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
github-bot referenced this pull request2026-11-26 05:10:49 +00:00
@ivall on GitHub · 2026-11-23 14:14 UTC · original
Merged. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129:
cargo test --workspacegreen with the retail samples (shader pack, console DLLs, texture archive), lib tests also withXCL_SPLIT_WAVE64=1; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!