[Ready to merge] I have prepared a fix for #773 (Auto-size texture mip levels) #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?
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T11:41:10Z.
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)
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T11:50:37Z.
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.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T11:59:03Z.
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.
Imported from Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T12:03:39Z.
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
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:48:40Z.
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