gpu/tiles: preserve ResourceMinLODClamp in show_from #36
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!36
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/36/head"
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?
@Androtim on GitHub · 2026-11-28 10:43 UTC · original
Androtim:feat/iter51-tiles-preserve-min-lod-clamp→main· +22 −23 · 1 files · 1 commits · merged 2026-11-28 18:44 UTCSummary
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
@Androtim on GitHub · 2026-11-28 11:02 UTC · original
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).