[pr-fix][rendering][memory] Measure texture holes after aligning their starts #194
Loading…
Reference in a new issue
No description provided.
Delete branch "tyr0nsur/Darner:codex/aligned-texture-holes"
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?
Contributor role (optional)
What it changes
The parking admission check took the widest raw free range in each texture pool and subtracted the maximum possible padding. On
ad070f0it reported 61,441 usable bytes for a 65,536-byte hole whose start was already aligned to 4 KiB.Measure each retained range from its actual aligned start when texture parking controls growth. The estimate still uses each bank's alignment and the smaller of the two widths when the request size cannot identify its bank. The check keeps the existing padding when parking is disabled. It estimates available space from the title's requested size and does not reserve a range.
How it was tested
3c7cfefa2e80125557a6467b4d0686c5a6a1469b, based onad070f073168c893a0afb00e0cd5d2ad35309ae0. Windows 11 Pro build 26300, RTX 4060 8 GiB, NVIDIA driver 621.40.ad070f0with the regression tests added, bothcargo +1.98.1 test --locked --offline -j 2 -p darner-gpu --lib an_aligned_small_hole_predicts_an_exact_fit -- --nocaptureand the same command withthe_host_can_place_a_small_texture_in_an_exact_fitreproduced 61,441 versus 65,536 bytes. The RTX 4060 successfully placed the texture before the admission assertion failed.cargo +1.98.1 test --locked --offline -j 2 -p darner-gpu --lib pool::tests:: -- --test-threads=1 --nocapturepassed 62 tests, including the native placement. Three benchmarks were ignored by the existing harness.cargo +1.98.1 clippy --locked --offline -p darner-gpu --all-targets --all-features -j 2 -- -D warningspassed.cargo +1.98.1 run --locked --offline -j 2 --quiet --package xtask -- policychecked 555 files. The staged variant checked the one changed file.git diff --check origin/main...HEADpassed.darner playconfiguration uses the corrected calculation through texture parking.Checklist
Checked for overlap
pool.rsfor the buffer reserve, test setup, and spare retention.Independently tested
3c7cfefa2e80on Windows 11 build 26300, NVIDIA driver 621.24 and Rust 1.98.1. In the same test process, DXGI identified the device as NVIDIA GeForce RTX 3060 Laptop GPU and D3D12 successfully placed the 65,536-byte texture at offset 4,096 with 4,096-byte alignment. Both the adapter diagnostic and the exact-fit test passed. The full pool test group passed 62 tests, with 3 ignored. This covers native placement on a second adapter. I did not run gameplay.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.