[Ready to merge] I have prepared a fix for #773 (Auto-size texture mip levels) #826
Labels
No labels
accessibility
area: build
area: formats
area: gpu
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
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
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/Marvisak--VIctory#826
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Xvania7 on GitHub · 2026-11-24 11:41 UTC · original
I have prepared a fix for #773 (Auto-size texture mip levels). Since direct PRs are restricted, the ready-to-merge branch is available in my fork: https://github.com/Xvania7/VIctory/tree/fix/issue-773-mip-levels
The code includes tests and all checks pass locally:
cargo test -p victory-gpu: 51 passed, 0 failed, 1 ignored
cargo clippy: 0 warnings
cargo xtask policy: 154 files ok
It can be automatically merged. Maintainers can pull it or let me know if a PR is needed. (Note: AI-assisted fix)
@DaviTostes on GitHub · 2026-11-24 11:50 UTC · original
Verified the fork branch
3eafeaf(fix/issue-773-mip-levels) on Arch Linux x86_64, Windows MSVC release test build under Wine 11.22 (--test-threads=1):victory-gpu: 51 passed, 0 failed, 1 ignored — matches the numbers in the issue.vkd3d-proton 3.2 + DXVK dxgi) two unrelated tests fail (indirect::tests::argument_clamp_builds,pipeline::library::tests::a_rejected_blob_gives_an_empty_library); both pass in the plain prefix, so they are environment (clamp compiler / vkd3d blob), not this change.Not tested: a title run with the fix (the change is
GetDesc-only), native Windows, and the mip-clear case in the game.@fuzeofficlal on GitHub · 2026-11-24 11:59 UTC · original
I independently tested
3eafeafon native Windows using RTX 5090 and WARP (verified via the D3D12 adapter LUID). The probe used the guest placed-resource path and required a live D3D12 texture mirror before comparing the two descriptions.A native copy into the final 1×1 mip of the automatic 2D texture and a copy back out returned the expected RGBA8 texel on both adapters. The probe covers resource creation and last-mip storage. It uses native D3D12 for the texel copies.
@Xvania7 on GitHub · 2026-11-24 12:03 UTC · original
Thanks a lot to @DaviTostes and @fuzefofficial for the independent verification! Really appreciate you testing it on Arch Linux, Windows MSVC, and especially the RTX 5090 + WARP. Glad to hear the mip counts and texel copy back are working exactly as expected across different hardware. Let me know if any further changes are needed before merging
@Marvisak on GitHub · 2026-11-25 03:48 UTC · original
Automated triage for the maintainers. This is the fix for #773, which is still present on
main.resource_descincrates/victory-gpu/src/resource.rswrites back the description exactly as the title created it, so an automatically sized texture (MipLevels0) reports 0 mips.mip_countin the same file already computes the full chain for 0. Open PR #933 ("report allocated mips from GetDesc") already addresses #773. Pull requests are open to everyone again (see #717), so please open the branch as a pull request and link #773. If it duplicates #933, compare the two and agree in #773 which one goes forward.Generated by Claude Code