Texture layout validation accepts multisampled BC formats #356

Open
opened 2026-11-27 21:23:10 +00:00 by github-bot · 1 comment
Owner

@⁠Damokles2 on GitHub · 2026-11-27 21:21 UTC · original

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.

**@⁠Damokles2** on GitHub · 2026-11-27 21:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/356) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:23:10 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 00:43 UTC · original

Thanks, that's a good catch. Go ahead: a small correction with CPU tests is welcome as a pull request.

**@⁠trustno1-coder** on GitHub · 2026-11-28 00:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/356#issuecomment-7231149148) Thanks, that's a good catch. Go ahead: a small correction with CPU tests is welcome as a pull request.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#356
No description provided.