formats(texture): map console formats 189-191 and reject multisampled BC layouts #42

Manually merged
github merged 1 commit from gh-pr/42/head into gh-pr/42/base 2026-12-01 20:04:00 +00:00
Owner

@⁠Androtim on GitHub · 2026-11-28 11:45 UTC · original
Androtim:feat/iter56-texture-formats-189-191-and-msaa-bc → main · +91 −3 · 1 files · 1 commits · merged 2026-11-28 13:16 UTC

Summary

Port trustno1-coder/VIctory-NVIDIA 0dd34bd (originally uiliannn/VItoriaBr 0d1c4e0) and 5b6955c into crates/victory-formats/src/texture.rs:

  • Map console DXGI texture formats 189 and 191 (4 bytes/texel, 1x1) and 190 (1 byte/texel, 1x1) in texture::format.
  • Require d.block == 1 in Layout::new when d.samples > 1 so multisampled block-compressed (BC1..BC7) texture layouts are rejected (Err(Error::Invalid)).
  • Add regression unit tests console_formats_have_layouts, bc_formats_accept_single_sample_layouts, bc_formats_reject_multisampled_layouts, and uncompressed_formats_keep_multisample_layout_rules.

Rig Specs Tested On

  • CPU: 13th Gen Intel(R) Core(TM) i7-13700F
  • GPU & VRAM: NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM)
  • System RAM: 32 GiB
  • OS & GPU Driver: Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124

Run Settings & Profile

  • Build & Commit SHA: release @ 253ead4 (off origin/main f3c0c33)
  • Console Profile & Internal Resolution / Scale: N/A (pure victory-formats texture layout / validation change verified by unit tests & CI)
  • Ray Tracing: N/A
  • Upscaling: N/A
  • Frame Generation: N/A
  • Launcher Command / Preset & Extra VICTORY_* Overrides: N/A
  • Scene / Area & Session Length: N/A (unit tests + static/build checks only)

Measurements & Verification

  • Base FPS (without Frame Gen): N/A (not run in-game; pure format/layout unit-tested change)
  • Frame-Gen FPS (if enabled): N/A
  • VRAM / RAM Usage: N/A
  • Crashes / DRED Resets: N/A
  • Automated Checks:
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (asset policy: 294 files ok)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask (6 passed; 0 failed)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-formats (46 passed; 0 failed; 5 ignored, including all 4 new texture::tests cases)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1 (448 passed; 0 failed; 36 ignored)
    • cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --release + objdump -p confirmed zero non-system MinGW DLL imports
**@⁠Androtim** on GitHub · 2026-11-28 11:45 UTC · [original](https://github.com/Androtim/MiniVI/pull/42) `Androtim:feat/iter56-texture-formats-189-191-and-msaa-bc` → `main` · +91 −3 · 1 files · 1 commits · merged 2026-11-28 13:16 UTC ## Summary Port `trustno1-coder/VIctory-NVIDIA` [`0dd34bd`](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/0dd34bd) (originally `uiliannn/VItoriaBr` `0d1c4e0`) and [`5b6955c`](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/5b6955c) into `crates/victory-formats/src/texture.rs`: - Map console DXGI texture formats `189` and `191` (`4` bytes/texel, `1x1`) and `190` (`1` byte/texel, `1x1`) in `texture::format`. - Require `d.block == 1` in `Layout::new` when `d.samples > 1` so multisampled block-compressed (`BC1..BC7`) texture layouts are rejected (`Err(Error::Invalid)`). - Add regression unit tests `console_formats_have_layouts`, `bc_formats_accept_single_sample_layouts`, `bc_formats_reject_multisampled_layouts`, and `uncompressed_formats_keep_multisample_layout_rules`. ## Rig Specs Tested On - **CPU:** 13th Gen Intel(R) Core(TM) i7-13700F - **GPU & VRAM:** NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM) - **System RAM:** 32 GiB - **OS & GPU Driver:** Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124 ## Run Settings & Profile - **Build & Commit SHA:** `release` @ `253ead4` (off `origin/main` `f3c0c33`) - **Console Profile & Internal Resolution / Scale:** N/A (pure `victory-formats` texture layout / validation change verified by unit tests & CI) - **Ray Tracing:** N/A - **Upscaling:** N/A - **Frame Generation:** N/A - **Launcher Command / Preset & Extra `VICTORY_*` Overrides:** N/A - **Scene / Area & Session Length:** N/A (unit tests + static/build checks only) ## Measurements & Verification - **Base FPS (without Frame Gen):** N/A (not run in-game; pure format/layout unit-tested change) - **Frame-Gen FPS (if enabled):** N/A - **VRAM / RAM Usage:** N/A - **Crashes / DRED Resets:** N/A - **Automated Checks:** - [x] `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` (`asset policy: 294 files ok`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask` (`6 passed; 0 failed`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-formats` (`46 passed; 0 failed; 5 ignored`, including all 4 new `texture::tests` cases) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1` (`448 passed; 0 failed; 36 ignored`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --release` + `objdump -p` confirmed zero non-system MinGW DLL imports
Port trustno1-coder/VIctory-NVIDIA 0dd34bd (uiliannn/VItoriaBr 0d1c4e0) and 5b6955c.

- Map console DXGI texture formats 189 and 191 as 4-byte 1x1 formats and 190 as a 1-byte 1x1 format in formats::texture::format.
- Require d.block == 1 for multisampled Texture2D layouts in Layout::new so block-compressed formats cannot produce multisampled layouts.
- Add regression unit tests for console formats 189-191 and multisampled BC rejection.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:03:58 +00:00
github manually merged commit 253ead4d0e into gh-pr/42/base 2026-12-01 20:04:00 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 12:03 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: merge-candidate · CI (check): passing

Review Summary

Clean, narrowly scoped change to crates/victory-formats/src/texture.rs with passing CI and good unit test coverage.

Verified Changes

  • Layout::new (crates/victory-formats/src/texture.rs): Adds d.block == 1 to the d.samples > 1 validation branch so multisampled block-compressed (BC1–BC7, block == 4) layouts are rejected with Err(Error::Invalid), while preserving existing multisample rules for uncompressed 2D non-mipmapped tiled textures.
  • texture::format (crates/victory-formats/src/texture.rs): Maps console DXGI formats 189 and 191 to (4, 1, false) and 190 to (1, 1, false).
  • Tests (texture::tests): Adds bc_formats_accept_single_sample_layouts, bc_formats_reject_multisampled_layouts, uncompressed_formats_keep_multisample_layout_rules, and console_formats_have_layouts covering all BC format ranges (70..=84, 94..=99), uncompressed MSAA/linear cases, and formats 189..=191.

Minor Note (Non-blocking)

  • In standard PC DXGI 1.6, enum value 191 is DXGI_FORMAT_A4B4G4R4_UNORM (2 bytes/texel); please confirm 191 => (4, 1, false) matches the intended console-specific DXGI format definition from the upstream commit before merging.

Verdict

merge-candidate — Pure victory-formats validation/table change with CI passing and no host D3D12/shader/GPU runtime changes requiring a local GPU smoke test. (Automated triage review; not a formal maintainer approval.)


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-28 12:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/42#issuecomment-7238960891) <!-- minivi-triage v1 head=253ead4d0ebe0cac7fe5ae5f4570d45e58b07940 verdict=merge-candidate ci=passing at=2026-11-28T12:03:46Z --> Automated triage for the maintainers (not an approval). **Verdict:** `merge-candidate` · **CI (`check`):** `passing` ### Review Summary Clean, narrowly scoped change to `crates/victory-formats/src/texture.rs` with passing CI and good unit test coverage. #### Verified Changes - **`Layout::new` (`crates/victory-formats/src/texture.rs`)**: Adds `d.block == 1` to the `d.samples > 1` validation branch so multisampled block-compressed (`BC1`–`BC7`, `block == 4`) layouts are rejected with `Err(Error::Invalid)`, while preserving existing multisample rules for uncompressed 2D non-mipmapped tiled textures. - **`texture::format` (`crates/victory-formats/src/texture.rs`)**: Maps console DXGI formats `189` and `191` to `(4, 1, false)` and `190` to `(1, 1, false)`. - **Tests (`texture::tests`)**: Adds `bc_formats_accept_single_sample_layouts`, `bc_formats_reject_multisampled_layouts`, `uncompressed_formats_keep_multisample_layout_rules`, and `console_formats_have_layouts` covering all BC format ranges (`70..=84`, `94..=99`), uncompressed MSAA/linear cases, and formats `189..=191`. #### Minor Note (Non-blocking) - In standard PC DXGI 1.6, enum value `191` is `DXGI_FORMAT_A4B4G4R4_UNORM` (2 bytes/texel); please confirm `191 => (4, 1, false)` matches the intended console-specific DXGI format definition from the upstream commit before merging. #### Verdict `merge-candidate` — Pure `victory-formats` validation/table change with CI passing and no host D3D12/shader/GPU runtime changes requiring a local GPU smoke test. (Automated triage review; not a formal maintainer approval.) --- _Generated with Antigravity CLI (`agy`)._
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Androtim--MiniVI!42
No description provided.