Formats: reject texture mip counts beyond the full chain #1791
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1792"
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 VlREX on 2026-11-24T22:40:06Z.
No description provided.
Imported from Marvisak/VIctory. Originally posted by dcastell1 on 2026-11-24T22:41:37Z.
Verified on native Windows (no Wine): NVIDIA GeForce RTX 5090 (driver 621.24), Windows 11 10.0.26300, Rust 1.98.1, MSVC 14.44.35207, debug build.
main@ffe310ebaseline on this box: 342 passed, 0 failed, 6 ignored.One more passing test than the baseline; rejecting mip counts beyond the full pyramid is exercised and green.
Tree restored afterwards; no game data. AI-assisted (opencode).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:05:46Z.
Review: APPROVED
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (
70564ae).cargo test -p victory-formats --locked → 24 passed, 0 failed. texture_mip_count_is_bounded_by_spatial_extent rejects mip counts beyond the full chain — clean validation fix.
fspx_programs_run_with_the_hardwares_dot_productsfails on RDNA1, where the driver folds a constantDot4AddI8Packedoperand as unsigned #1781Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:23:41Z.
Automated triage for the maintainers.
Needs work: evidence needed.
Texture::newincrates/victory-formats/src/texture.rsreturnsError::Invalidwhenmipsis larger than the full chain. Onmainit lays out the extra 1×1 levels instead. This is shared layout code:victory-hle'sxg.rs(the layout the title asks the console library for) andvictory-gpu'sresource.rsboth call it. So for such a description the XG call would now fail where it used to return a layout.Since the last review, a second commit (
ea9ada0) adds a test for a 7×5 BC7 chain and for oversized counts up tou32::MAX. The test is correct: it gives 3 levels, and the cap uses the texel extent, not the block extent. But a test does not answer the two open points:MipLevelsbeyond the chain is a hint, not the console's library.CI: passing.
Generated by Claude Code
fspx_programs_run_with_the_hardwares_dot_productsfails on RDNA1, where the driver folds a constantDot4AddI8Packedoperand as unsigned #1781View 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.