Repository navigation
Conversation
0153bbd to
d40a154
Compare
|
Update for head Run on a Ryzen 7 5800X PC (the AMD side was listed as untested, but as far as I can see these tests only reserve CPU memory with Tested: at the PR head
Not tested: the whole suite, a title, the RTX 3060 (no GPU path in these tests that I could see). AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Independent Windows/NVIDIA check of #3092 head The three new allocator fixtures passed on this exact head (3/0/0, no reported skip). The full I changed only that test-title expectation locally, rebuilt the workspace, and ran Verified test-title correction@@
- // 4 MiB page-size semantics (XALLOC_PAGESIZE_4MB = 2 << 14): 4 MiB-aligned & zeroed
- let attrs_4m = (1u64 << 29) | (2u64 << 14);
- let big = XMemAlloc(0x1000, attrs_4m);
- ensure!(!big.is_null() && (big as usize) % (4 << 20) == 0, "4MB page alloc not 4 MiB aligned: {big:?}");
- ensure!(*(big as *const u64) == 0 && *((big as usize + (4 << 20) - 8) as *const u64) == 0, "4MB page alloc not zeroed");
- XMemFree(big, attrs_4m);
+ // Page-size code 2 uses a 2 MiB grain: the returned allocation is aligned and zeroed.
+ let attrs_2m = (1u64 << 29) | (2u64 << 14);
+ let big = XMemAlloc(0x1000, attrs_2m);
+ ensure!(!big.is_null() && (big as usize) % (2 << 20) == 0, "2MB page alloc not 2 MiB aligned: {big:?}");
+ ensure!(*(big as *const u64) == 0 && *((big as usize + (2 << 20) - 8) as *const u64) == 0, "2MB page alloc not zeroed");
+ XMemFree(big, attrs_2m);The other two suite failures were the mesh-cache test ( AI use: Codex (GPT-6.2 Sol) inspected the patch, ran the tests, and verified the test-title correction. |
…#3092 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main gained 345 commits since 753e8b1, most of them bmjask's stack (xcl-dev#2959), plus xcl-dev#2872, xcl-dev#3085 and xcl-dev#3086 from this branch. Conflicts, per PR: - xcl-dev#2404 + xcl-dev#2633 (split chained ExecuteIndirect): main's xcl-dev#2959 took both over (ed98461, a05fbc4, 8626d5b: IndirectBuild/IndirectChain on a CBV root, one-command slicer, separate cache namespace). Main's side kept in dispatch_chain.rs, pso.rs (slicer, command signature, chain root), bind.rs (ExecuteIndirect path), device_x.rs (signature traits), pso_async.rs (no background whole build, so no build_waited_on), real.rs (ComputeBuild, driver_cache names) and shaders.rs (blob names). Dropped with them: slab_count, record_slicer, abi_signature_id names, the direct root-CBV constant blocks, list_x::predicated, the split.rs/runner.rs ExecuteIndirect test and the list_x chain-scratch test. Not in main: xcl-dev#2404 ran the pieces before any whole form was built; main runs the whole form (built on the title's thread) until the indirect set is ready. - xcl-dev#2707 (allocator reclaim): main has it (31930d8, 057f463, 8e7b566). alloc_pool.rs is main's, with xcl-dev#867's changes on top; bind.rs takes main's native_backing; xcl-dev#2707's tests and bind::push_uma_for_test go. - xcl-dev#867 + xcl-dev#2477 (Wine vtables and fences), adapted to main's new code: real.rs keeps the in-place patching, UnadoptGuard and FenceProxy beside main's native_queue_* helpers; guards in cl_reset, bind_pipeline_exact, clear_pipeline_exact, reset_pc_allocator, the title ExecuteCommandLists closure and native_queue_execute; Signal/Wait unwrap the title's fence (also in native_queue_signal/wait); list_x guards in reset_reserved_segment and KickoffX's submit closures; create_raw_fence for main's new internal fences in alloc_pool.rs (SubmissionGate), title_textures.rs, present.rs, vram.rs, sparse.rs, cpu_writes.rs; tests as xcl-dev#2477 had them; runner.rs is main's plus submit_list. - xcl-dev#1803 (heap addresses): kept, carried into main's PreparedSplit and PreparedAbiState (prepared_abi_io takes the heaps). - xcl-dev#1368 (NodeMask 0): kept in compute_container, before main's per-node blob names, so names and pipeline use node 0. - xcl-dev#1860, xcl-dev#2082 (cfg.rs, module/opt.rs): cfg.rs is 1567f72's version (xcl-dev#1860 on main's Succs); opt.rs is that plus xcl-dev#2082's arm and test. - xcl-dev#2229 (rodata): kept through main's kernel.rs entry points; translate_entry_rodata loses wave32_only as main dropped per-GPU tables (3cde0cc); pso.rs and coverage.rs call it with main's options (no_remap, split for graphics); recomp Options keeps rodata and no_remap. - xcl-dev#1975: kept in emit.rs and lower_valu.rs; its mesh barrier guard and its test dropped, main's wider guard (2ca9127) covers it; the now-unused lower::has_non_uniform_barrier goes. - xcl-dev#2070 (64 MB stacks): pso_async::WORKER_STACK on main's worker, helper and preload threads; shaders.rs's piece threads on worker_thread. - xcl-dev#2551 (whole forms prebuilt): split_whole_roots(false) is DirectChain, so the precompile builds every split program's whole form; main built it only for programs an earlier run used through ExecuteIndirect. - xcl-dev#688 (dxc.rs imports), xcl-dev#2762 (host.rs log line), xcl-dev#3090 (list_x tests), arch/window-title-commit (present.rs with_commit on main's compiling_text), README.md: both sides. - list_x.rs: main dropped title_textures::list_reset; main's side. - sparse.rs, vram.rs: main's quarantine_tiles_for and per-device retire state, with create_raw_fence. - xcl-dev#3090, xcl-dev#3092 tests: runner::device and Uma::block_len added from nvidia-dev (5 and 12 lines) so the lib tests compile. - xcl-dev#751: its commit is already in main (b84e037, via xcl-dev#2844); it leaves the README table with xcl-dev#2404, xcl-dev#2633, xcl-dev#2707, xcl-dev#2872, xcl-dev#3085 and xcl-dev#3086. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Correct PageSize=2 rounding while preserving explicit alignment, checked sizes, and recorded allocation/free accounting. Update the test title's alignment and zeroing-tail probes to the same 2 MiB contract, keeping the tail read inside its allocation. Three focused tests passed on the earlier preserved patch; restoring the old 4 MiB grain failed all three controls. The new squashed head has not been run individually. Full-suite and retail merge checks remain pending. Assisted-by: Codex (GPT-6)
d40a154 to
f00e1c4
Compare
|
Exact-head Windows/NVIDIA rerun of #3092 Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC. Regression run. I built release XCL separately from clean current The PR run clears the stated frame and peak-commit thresholds (1,582 ≥ 80% of 1,163; 16,802 MB ≤ 125% of 15,107 MB). I would not attribute the frame difference to this change because cache warmth may differ. The author can paste these generated blocks under the PR description's Regression run section. No menu input was sent, so this pair covers startup/menu behavior, not world load or gameplay. AMD and Intel were not tested here. AI use: Codex (GPT-6.2 Sol) ran the builds, suite and paired smoke, checked the counts, and wrote this report. |
|
The current PR-description check is red because Regression run still says “Pending” and contains neither required smoke block. The Windows build check passed on head The two generated, clean-commit 60-second main/head blocks for the same sample title are in my exact-head report. The head has not changed since that run. Please place those blocks verbatim under Regression run and attribute the independent test result in Tested; the current “not run individually” wording is now stale. No source change is needed for this description gate. If the head is pushed again, its smoke must be rerun as CONTRIBUTING.md requires. AI use: Codex (GPT-6.2 Sol) checked the current head, PR description, and CI job against the previously posted run. |
|
I checked the public graphics allocation/free path with three mixed-size allocations live at once. On Windows 11 / Ryzen 7 5700X3D, the new grain reduced their recorded sparse allocation lengths by exactly 2 MiB and preserved middle-hole reuse and neighboring contents.
An identical test-only fixture called One fresh process per revision, one passing fixture each, zero skips. This measured the CPU-side sparse allocation path before D3D device creation. It does not measure physical VRAM residency, title memory savings, or native fallback alignment (#1343). AI assistance: OpenAI Codex (GPT-6) prepared the fixture, ran both revisions and wrote this report. |
bmjask
left a comment
There was a problem hiding this comment.
The measured allocation benefit is useful, but the semantic basis for changing page-size code 2 from the existing 4 MiB interpretation to 2 MiB needs authoritative evidence. This is an externally visible allocation/alignment contract, not merely an allocator tuning constant; a wrong grain can change alignment, reservation size, and aliasing behavior.
Please cite the permitted source or add black-box allocation tests that establish the 2 MiB behavior across relevant sizes and alignments. Also update the failing PR-description gate before promotion from nvidia-dev.
Reviewed at f00e1c4 with Codex (GPT-5).
`cargo test --lib` did not compile on this stack: three errors in test code, not in the runtime. Both helpers exist upstream only on `nvidia-dev` (and the branch off it that the two Prime PRs were written against); `main` and `amd-dev` have neither, and the picks carried their call sites without them: - `Uma::block_len` was added by c3b80c4 ("kernelx: a released block of unified memory leaves no shown page there"); the kernelx test that calls it arrived here through e3fd690e (xcl-dev#3092). - `runner::device` was added by fe650b6 ("D3D12.X: dispatches of more than 65 535 groups in X are folded into Y"); the barrier test that calls it arrived here through fb626850 (xcl-dev#3090). Both are backported verbatim. `device` matters beyond compilation: a test that creates its own device first leaves the Agility SDK unappliable (0x887E0003) and every GPU test after it skips. Tested under Wine GE-Proton11-14 + vkd3d-proton 3.1.0 on RADV NAVI31: `cargo test --lib --no-run` builds; the two affected tests pass (xmem_graphics: 2 passed; gpu_resource_barrier_console_hint: 1 passed, real GPU run). The rest of the suite is not run here. Assisted-by: omp (DeepSeek-V4.1-flash) (cherry picked from commit c443e1b06da3f3c87923d76107d5a4c1e3243e02)
`cargo test --lib` did not compile on this stack: three errors in test code, not in the runtime. Both helpers exist upstream only on `nvidia-dev` (and the branch off it that the two Prime PRs were written against); `main` and `amd-dev` have neither, and the picks carried their call sites without them: - `Uma::block_len` was added by c3b80c4 ("kernelx: a released block of unified memory leaves no shown page there"); the kernelx test that calls it arrived here through e3fd690e (xcl-dev#3092). - `runner::device` was added by fe650b6 ("D3D12.X: dispatches of more than 65 535 groups in X are folded into Y"); the barrier test that calls it arrived here through fb626850 (xcl-dev#3090). Both are backported verbatim. `device` matters beyond compilation: a test that creates its own device first leaves the Agility SDK unappliable (0x887E0003) and every GPU test after it skips. Tested under Wine GE-Proton11-14 + vkd3d-proton 3.1.0 on RADV NAVI31: `cargo test --lib --no-run` builds; the two affected tests pass (xmem_graphics: 2 passed; gpu_resource_barrier_console_hint: 1 passed, real GPU run). The rest of the suite is not run here. Assisted-by: omp (DeepSeek-V4.1-flash) (cherry picked from commit c443e1b06da3f3c87923d76107d5a4c1e3243e02)
|
At #3092 head Please bound the zero check to the requested bytes. A permitted native reference or documented contract should establish the 2 MiB extent separately from alignment. A useful comparison would cover 1 byte, 2 MiB, and 2 MiB + 1 byte with natural and explicit 8 MiB alignment; an address merely divisible by 2 MiB cannot distinguish the old 4 MiB interpretation. Small test-boundary change for consideration- ensure!(*(big as *const u64) == 0 && *((big as usize + (2 << 20) - 8) as *const u64) == 0, "2MB page alloc not zeroed");
+ ensure!(*(big as *const u64) == 0 && *((big as usize + 0x1000 - 8) as *const u64) == 0, "page allocation not zeroed in the requested range");This is a source review; I did not run this proposed edit or a native console comparison. AI use: Codex (GPT-6.2 Sol) checked the test and allocator; Codex (GPT-6.2 Astra) independently traced the contract and free path. |
How this was run: the suite ran once on the 11 of your PRs that build on this base, merged together (#3047 #3048 #3049 #3091 #3092 #3103 #3104 #3105 #3107 #3123 #3125; a local tree, only #3125 needed a resolution in README and the AI use: Claude Code (Claude Opus 5.5 and Claude Fable 5.2) ran the builds, tests and title runs, reviewed the diff and wrote this; the code points cited were checked against the merged tree. |
|
merge-check This check was run from the PR author's account (Prime1997), so it does not count as one of #3041's two independent checks. Suite in debug; smokes on release builds of the exact merged and base commits, with a copied profile and shader cache. Generated by Claude Code |
|
merge-check |
bmjask
left a comment
There was a problem hiding this comment.
Critical review of current head f00e1c4f. The new tests establish that the implementation uses a 2 MiB grain, but they do not establish that console PageSize=2 means 2 MiB. This is a guest-visible allocation/alignment contract; choosing the wrong grain changes reservation size and potentially aliasing. Please provide a permitted authoritative source or a black-box comparison on the console for multiple sizes and requested alignments. This remains the concern in my earlier review. No local Windows run.
|
Review (head f00e1c4, diff read, not a merge-check:
Fine: rounding of size 0 and boundary sizes, overflow, alignment larger than the page grain and memory accounting are tested, and the tests fail with the old 4 MiB grain. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Test report (not a merge-check: AI-written and posted by Foniass without a human check of each point. |
Correct XMemAllocDefault graphics PageSize=2 rounding from 4 MiB to 2 MiB while preserving larger explicit alignment, overflow checks and recorded allocation/free accounting.
What is in it
Tested
cargo test --locked -p xcl --lib --target-dir <private-target> -- --exact --test-threads=1 --nocapture hle::kernelx::tests::xmem_graphics_page_size_two_uses_two_mib_grain hle::kernelx::tests::xmem_graphics_page_grain_preserves_other_codes_and_checks_overflow hle::kernelx::tests::xmem_two_mib_layout_accounts_and_releases_owned_memoryba9d1f947. The previous PR head wasd40a1540f6497eabcbe36793f4a6c1c2254d91ac. New squashed headf00e1c4fec6207ed99489947b0180caefaf57c53includes the test-title correction and has not been run individually. Source review andgit diff --checkpassed; they are not native-test coverage.Regression run
Pending. No retail smoke blocks are claimed.
Not tested
5d0833553c68d2afa327c913cd9a22f17ec6f45eincludes this correction; its full suite and release build are pending. Those combined results will be reported separately and will not establish an individual PR smoke run.AI use
Codex (GPT-6) implemented and independently reviewed the change and ran the reported checks. API contracts were checked against local GDK documentation; no SDK code, headers, binaries, samples or documentation text are included.
Optional temporary Discord for coordinating contributor work, testing and comparing results.