Texture layout validation accepts multisampled BC formats #356
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Damokles2 on 2026-11-27T21:21:10Z.
I found a small CPU-reproducible texture layout validation issue in victory-formats.
Layout::new() currently accepts a 4×4 BC1_UNORM texture with four samples and SW_64KB_R_X, returning a 65,536-byte allocation.
Single-sample BC1 and four-sample RGBA8 both pass as expected.
D3D12 does not support multisampled BC1 resources.
I am investigating whether compressed formats should be explicitly rejected by the multisample layout validation.
Original VIctory PR Marvisak/VIctory#3385 changes the related swizzle validation but does not address this format combination.
Is anyone already working on this? If not, I would like to prepare a small correction with synthetic CPU regression tests.
AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T00:43:50Z.
Thanks, that's a good catch. Go ahead: a small correction with CPU tests is welcome as a pull request.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T02:50:31Z.
Fixed in v2026.11.27.10 by #386 (Damokles2): multisampled block-compressed texture layouts are now refused.