Repository navigation
Conversation
…ew_sources Table maintains the invariant that PENDING counts only active (`by_res`) entries with `pending == true`: Table::insert subtracts 1 when moving a pending entry into `shadowed`, Table::remove / retire_range do not subtract when deleting a shadowed entry, and Table::remove adds 1 when uncovering a pending shadowed entry. recheck_gpu_view_sources previously called recheck_source() on both `by_res` and `shadowed` and incremented PENDING directly for both, leaking PENDING permanently whenever a shadowed GPU-view texture's source changed (whether later removed while shadowed or uncovered and counted a second time). Move source rechecking into Table::recheck_sources -> (changed, pending_delta) counting only `by_res` entries, and apply the delta via adjust_pending, with a unit test covering both shadowed-removal and uncover-then-remove paths. Assisted-by: OpenCode (Gemini 4 Neon)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Full-suite run on NVIDIA and AMD to go with the subset check above. Tested exact head Tested
Not tested
AI use
|
…cl-dev#1286-xcl-dev#1291, xcl-dev#1294, xcl-dev#1296-xcl-dev#1297, xcl-dev#1300 Prevent background shader preloading and concurrent DXC/RADV compiles from exhausting host RAM under Wine, and integrate 11 open upstream PRs: - dxc.rs & real.rs: check free physical RAM (ullAvailPhys.min(ullAvailPageFile)) under Wine instead of swap-inclusive ullAvailPageFile, avoid bypassing the guard after 60 s under Wine, and serialize giant (>= 4 MiB DXIL) driver compiles with BIG_COMPILES under Wine. - pso_async.rs: cap background preload workers to 1 under Wine. - title_textures.rs: use real::create_raw_fence in submit_on_title_queue and read coherent-window hash bytes safely via with_title_bytes. - Integrate upstream PRs xcl-dev#968 (sparse::queue lock-free for late_release), xcl-dev#1286 (v_dot2_f32_f16 NEG_HI abs), xcl-dev#1287 (XMA >8 channels), xcl-dev#1288 (Sleep pauses during PSO bind waits), xcl-dev#1289 (pipeline stream bounds check), xcl-dev#1290 (root signature MAX_ARGS cap), xcl-dev#1291 (console UAV clears xcl-dev#53/xcl-dev#54), xcl-dev#1294 (shadowed PENDING accuracy), xcl-dev#1296 (16-bit compare low halves), xcl-dev#1297 (fence_x pre-cell signal arming), xcl-dev#1300 (log driver compute PSO refusal). Verified on RX 9060 XT under GE-Proton11-14 (MemoryMax=12G, 80 s): committed RAM stays flat at 4830 MB (down from 27.6 GB OOM), 1493 frames shown, exit 0x0. Assisted-by: Antigravity (Google DeepMind)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows run on 554cf14. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug.
I extended the synthetic GPU mirror test in a scratch copy. Two committed D3D12 textures had independent GPU allocations and overlapping title-memory ranges. I mapped a new source while the older texture was shadowed, let the covering texture's uploads finish, then removed it. The restored texture read back 4,096/4,096 new pixels. The pending upload count was 0 → 0 → 0 before the map, while shadowed, and after the restored texture uploaded. The same fixture on #1733’s 44089a2 left all 4,096 old pixels in place with counts of 0 → 0 → 0. Restoring the original pending update in that checkout refreshed all pixels and left the count at 0 → 1 → 1.
Recheck after #2029 merged. I reran the same native RTX fixture on main at 1a0bbe3, then with each PR merged separately into that revision. Each run used the default streaming recheck setting and advanced no frames.
|
Tablemaintains the invariant thatPENDINGcounts only active (by_res) entries withpending == true:Table::insertsubtracts 1 when moving a pending entry intoshadowed,Table::remove/retire_rangedo not subtract when removing a shadowed entry, andTable::removeadds 1 when uncovering a pending shadowed entry.recheck_gpu_view_sourcespreviously calledrecheck_source()on bothby_resandshadowedand incrementedPENDINGdirectly for both, permanently leakingPENDINGwhenever a shadowed GPU-view texture's source changed (both when later removed while shadowed and when uncovered and counted a second time), permanently disabling thedirty_len == 0 && PENDING == 0fast path inrefresh_once.This moves source rechecking into
Table::recheck_sources -> (changed, pending_delta)counting onlyby_resentries, and appliesdeltathroughadjust_pending(matchingTable::insert/Table::remove).What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: addTable::recheck_sources, return(changed, newly_pending)fromrecheck_source, and applypending_deltainrecheck_gpu_view_sources; add unit testrecheck_sources_keeps_pending_exact_for_shadowed_entriescovering both shadowed-removal and uncover-then-remove paths.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib recheck_sources_keeps_pending_exact_for_shadowed_entriesanda_lazily_mapped_page_in_a_gpu_view_is_its_own_source: both passRegression run
main:
PR:
Not tested
AI use
title_textures.rs, wrote the fix and regression test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.