gpu/descriptor: reject typed UAVs in formats host cannot store #31

Closed
github-bot wants to merge 1 commit from gh-pr/31/head into gh-pr/31/base
Owner

@⁠Androtim on GitHub · 2026-11-28 09:43 UTC · original
Androtim:feat/iter46-typed-uav-format-support → main · +144 −21 · 1 files · 1 commits · closed without merging

Summary

Port Marvisak/VIctory ea488a9 (#2462) into crates/victory-gpu/src/descriptor/host.rs:

  • Query D3D12_FEATURE_FORMAT_SUPPORT (D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW) in yped_store() (caching per format in KNOWN, without caching before host() is initialized) and reject typed unordered access views whose effective format cannot be stored to (e.g., B5G5R5A1_UNORM on NVIDIA Windows, which otherwise causes DXGI_ERROR_INVALID_CALL / device removal).
  • Refactor its() via pure its_format() so the effective format is checked (sRGB->linear rewrite on UAVs, own for typed resources and arget_format() stand-ins, iew for typeless resources) and typeless or typed-depth effective formats on typeless textures are also refused cleanly.
  • Added descriptor::host::tests::typed_uav_rejects_unsupported_formats_and_respects_effective_format.

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) / Driver 32.0.16.2124

Run Settings & Profile

  • Build & Commit SHA:
    elease (and
    elease --features diagnostics) @ $sha
  • Console Profile & Internal Resolution / Scale: series-s (Quality scale .6666667, title output 960x540)
  • Ray Tracing: off
  • Upscaling: DLSS quality (Streamline 2.14.16)
  • Frame Generation: off
  • Launcher Command / Preset & Extra VICTORY_ Overrides:* erify-world.ps1 play.rs SETTINGS preset + VICTORY_CARD_ACCOUNTING=1, VICTORY_D3D12_DRED=light, VICTORY_SKIP_BINK=1 (pr31-typed-uav-check)
  • Scene / Area & Session Length: Mission-1 golden save (balcony / coastal world entry), 75s in-world after world entry (draws >= 500, 14 windows)

Measurements & Verification

  • Base FPS (without Frame Gen): median 9.55 fps (mean 8.64 fps, steady balcony 8.5–11.9 fps) vs 8.9 fps baseline (+0.65 fps); rame-7577.png & rame-8729.png visually clean (luma=102.66, edge_energy=7.13,
    ear_black=1.46%, magenta=0.0%)
  • Frame-Gen FPS (if enabled): off
  • VRAM / RAM Usage: peak 5750 MB / min budget 6939 MB ( MB over budget; 5738 MB VRAM + 5419 MB shared in final copystat line), inal_waiting=4580 (vs 7121 baseline)
  • Crashes / DRED Resets: (crashes=0,
    o_host_texture_errors=0, "an unordered view in a format the host cannot store" warnings in Series S balcony scene)
  • Automated Checks:
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (sset 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-gpu --lib -- --test-threads=1 (449 passed; 0 failed; 36 ignored, including yped_uav_rejects_unsupported_formats_and_respects_effective_format)
    • cargo +1.98.1-x86_64-pc-windows-gnu build --release -p victory & --release --features diagnostics -p victory + objdump -p (0 non-system MinGW DLLs)
    • erify-world.ps1 (pr31-typed-uav-check, 75s): 11/11 verifier gates PASS
**@⁠Androtim** on GitHub · 2026-11-28 09:43 UTC · [original](https://github.com/Androtim/MiniVI/pull/31) `Androtim:feat/iter46-typed-uav-format-support` → `main` · +144 −21 · 1 files · 1 commits · closed without merging ## Summary Port Marvisak/VIctory ea488a9 (#2462) into crates/victory-gpu/src/descriptor/host.rs: - Query D3D12_FEATURE_FORMAT_SUPPORT (D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW) in yped_store() (caching per format in KNOWN, without caching before host() is initialized) and reject typed unordered access views whose effective format cannot be stored to (e.g., B5G5R5A1_UNORM on NVIDIA Windows, which otherwise causes DXGI_ERROR_INVALID_CALL / device removal). - Refactor its() via pure its_format() so the effective format is checked (sRGB->linear rewrite on UAVs, own for typed resources and arget_format() stand-ins, iew for typeless resources) and typeless or typed-depth effective formats on typeless textures are also refused cleanly. - Added descriptor::host::tests::typed_uav_rejects_unsupported_formats_and_respects_effective_format. ## 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) / Driver 32.0.16.2124 ## Run Settings & Profile - **Build & Commit SHA:** elease (and elease --features diagnostics) @ $sha - **Console Profile & Internal Resolution / Scale:** series-s (Quality scale .6666667, title output 960x540) - **Ray Tracing:** off - **Upscaling:** DLSS quality (Streamline 2.14.16) - **Frame Generation:** off - **Launcher Command / Preset & Extra VICTORY_* Overrides:** erify-world.ps1 play.rs SETTINGS preset + VICTORY_CARD_ACCOUNTING=1, VICTORY_D3D12_DRED=light, VICTORY_SKIP_BINK=1 (pr31-typed-uav-check) - **Scene / Area & Session Length:** Mission-1 golden save (balcony / coastal world entry), 75s in-world after world entry (draws >= 500, 14 windows) ## Measurements & Verification - **Base FPS (without Frame Gen):** median 9.55 fps (mean 8.64 fps, steady balcony 8.5–11.9 fps) vs 8.9 fps baseline (+0.65 fps); rame-7577.png & rame-8729.png visually clean (luma=102.66, edge_energy=7.13, ear_black=1.46%, magenta=0.0%) - **Frame-Gen FPS (if enabled):** off - **VRAM / RAM Usage:** peak 5750 MB / min budget 6939 MB ( MB over budget; 5738 MB VRAM + 5419 MB shared in final copystat line), inal_waiting=4580 (vs 7121 baseline) - **Crashes / DRED Resets:** (crashes=0, o_host_texture_errors=0, "an unordered view in a format the host cannot store" warnings in Series S balcony scene) - **Automated Checks:** - [x] cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (sset 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-gpu --lib -- --test-threads=1 (449 passed; 0 failed; 36 ignored, including yped_uav_rejects_unsupported_formats_and_respects_effective_format) - [x] cargo +1.98.1-x86_64-pc-windows-gnu build --release -p victory & --release --features diagnostics -p victory + objdump -p (0 non-system MinGW DLLs) - [x] erify-world.ps1 (pr31-typed-uav-check, 75s): **11/11 verifier gates PASS**
Port Marvisak/VIctory ea488a9 (#2462): query D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW via CheckFeatureSupport (typed_store, without caching when host() is None) and reject typed unordered access views whose effective format (own format for typed resources and target_format stand-ins, requested linear format for typeless resources) cannot be stored to, along with typeless or typed-depth effective formats. Extracted pure fits_format helper with unit tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:03:15 +00:00
github-bot closed this pull request 2026-12-01 20:03:15 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 10:03 UTC · original · edited 2026-11-28 21:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-28 10:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/31#issuecomment-7237639167) · edited 2026-11-28 21:02 UTC <!-- minivi-triage v1 head=0768f4f40d61133db51dff675e1f58dd486d6bc4 verdict=needs-rebase ci=passing at=2026-11-28T21:03:00Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 21:18 UTC · original

Closing as superseded duplicate of merged PR #19.

**@⁠Androtim** on GitHub · 2026-11-28 21:18 UTC · [original](https://github.com/Androtim/MiniVI/pull/31#issuecomment-7245919857) Closing as superseded duplicate of merged PR #19.

Pull request closed

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!31
No description provided.