Memory: reject sparse and cross-window spans in texture::uma_bytes #1530
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!1530
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1530"
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?
@OtavioTadeu on GitHub · 2026-11-24 17:18 UTC · original
OtavioTadeu:fix/uma-bytes-committed-span-1393→main· +67 −7 · 2 files · 1 commits · openPrevents
texture::uma_bytesfrom reading uncommittedWindowKind::SparseUMA reservations or cross-window spans, and returns an ownedVec<u8>instead of forging&'static [u8]over guest-mutable memory. Fixes #1393.What is in it
crates/xcl/src/gpu/uma.rs: addUma::contains_committed_spanand unit tests covering sparse windows, cross-window spans, zero-length, and overflowcrates/xcl/src/gpu/texture.rs: validate spans viacontains_committed_span, returnResult<Vec<u8>, String>viauma_bytes_in, and add unit testsTested
stable-x86_64-pc-windows-msvc), debug buildcargo test --workspace -- --test-threads=4: 778 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask[no wave64],gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware[no wave64],heap_window_out_of_memory_falls_back_to_the_switch_form[no heap windows])cargo test -p xcl --lib uma: 12 passed, 0 failedcargo test -p xcl --lib texture: 31 passed, 0 failedRegression run
scripts/smoke.ps1 -Game retail_title -Seconds 60(mainbaseline vs PR head on NVIDIA GeForce GTX 1660 SUPER):Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 19:05 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.