Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib resource::tests::— 11 passed, 0 failed on RTX 5090cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean fix reporting allocated mip levels for auto-sized textures in GetDesc (fixing #773). Looks good.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Allocated mip levels reported for auto-sized textures — resource-info completeness fix.
…y #2193) A texture made with MipLevels 0 got its whole chain in memory but told the title 0. GetDesc now answers mip_count, as the console does (fxceless#773). Ported from Marvisak/VIctory#2193 (Xvania7), GPL-3.0-or-later.
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present, so the hardware-only shader checks run. I merged this PR's head AI-assisted (Claude Code); no game data. |
|
Automated triage for the maintainers. Needs work (close). On your reply: the redundancy point is settled, and the #1543 plan is fine. On evidence, I couldn't find the quoted sentence ("…MipLevels reflects the actual number of mip levels allocated (never 0)") on the Generated by Claude Code |
|
Updated in 9849794 to address triage points:
|
3eafeaf to
9849794
Compare
|
I checked the GetDesc question from the triage note directly against native D3D12 on WARP. The same fixture creates each resource through the native device and through VIctory, then reads both GetDesc results. The resource description page documents automatic mip-chain allocation when MipLevels is zero. D3D12_RESOURCE_DESC
Six paired runs reproduced these values across both debug settings. The exact PR plus test passed 55 serial GPU tests with one ignored in each setting. The local merge with current main passed 200 with one ignored in each. Strict Clippy in both configurations and asset policy passed on the exact PR. The test-only commit 4be1fd4 is directly on 9849794. Please retain the Git author on cherry-pick or rebase. If you fold the test into another commit, please add the following trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic textures on WARP. |
Fixes #773 (supersedes tracking issue #826).
Summary
esource_desc in crates/victory-gpu/src/resource.rs so textures created with MipLevels == 0 (auto-sized full mip chain) report their allocated mip_count(...) from GetDesc instead of .
Verification