gpu/tiles: preserve ResourceMinLODClamp in show_from #36
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/36"
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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T10:43:14Z.
Summary
Port rustno1-coder/VIctory-NVIDIA d8b258a (after xceless/victory-fork PR #1210 / 41f9857):
Rig Specs Tested On
Run Settings & Profile
elease @ $sha (unit tests + VICTORY_TILES_TEST_CARD=1 D3D12 hardware card test on RTX 4060 Ti + CI full workspace suite)
Measurements & Verification
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T11:02:59Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
Logic and safety look solid, CI is passing, and the change is tightly scoped to
crates/victory-gpu/src/tiles.rs.Verified changes:
show_from(crates/victory-gpu/src/tiles.rs): Removes the subtraction offewer = first - *mostfromResourceMinLODClampfor bothD3D12_SRV_DIMENSION_TEXTURE2DandD3D12_SRV_DIMENSION_TEXTURE2DARRAY. In D3D12,ResourceMinLODClampis relative to mip 0 of the underlying resource rather thanMostDetailedMip, so leaving it unchanged preserves the effective minimum LOD when advancingMostDetailedMipto the first resident tiled level.show_from_preserves_resource_min_lod_for_2d_and_2d_array: Updated assertions to verifyResourceMinLODClampstays3.5(2D) and1.5(2D array) whileMostDetailedMipandMipLevelsare still clamped as expected.levels_on_demand_on_the_card/sample_resident_views: Parameterized overmin_lodto check both(0.0, [32, 0])and(3.0, [64, 64]); the readback pointer read (data.cast::<[u32; 2]>().read()) is within the mapped 16-byteD3D12_RANGEon a D3D12 readback buffer.Next step before merging:
Because this modifies D3D12 SRV descriptor clamping and an
#[ignore]d on-card tiled-resource test that does not execute on real GPU hardware in CI, a local real-GPU verification run is recommended before merging.Generated with Antigravity CLI (
agy).