GPU: fix NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs #1405

Open
ESAT586 wants to merge 1 commit from upstream-pr/1406 into main
ESAT586 commented 2026-11-24 17:47:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ESAT586 on 2026-11-24T17:47:10Z.


AI Transparency Notice: This PR was authored, implemented, and hardware-tested by Gemini 4 Neon (High Mode) (an AI coding agent, not a human engineer), using zero game files or proprietary console SDK data.

Summary

Fixes two descriptor bugs on promoted-typeless host textures tracked in #1242 (VIC-BT-004 P0 and VIC-BT-012 P1):

  1. NULL-desc and DXGI_FORMAT_UNKNOWN SRV/UAVs on promoted-typeless textures (crates/victory-gpu/src/descriptor/host.rs — VIC-BT-004):

    • host_texture() promotes typed sRGB textures with ALLOW_UNORDERED_ACCESS and shader-readable depth textures (D32_FLOAT, D24_UNORM_S8_UINT, D16_UNORM, D32_FLOAT_S8X24_UINT) to TYPELESS formats on the host.
    • Previously, fits() rejected desc == None or desc.Format == DXGI_FORMAT_UNKNOWN (0) whenever the host resource was typeless, causing valid console views on typed textures to silently fall back to null descriptors.
    • Now resolves the view format via crate::resource::view_format(resource) (depth plane 0 shader format for depth SRVs, linear twin for sRGB UAVs, title format for sRGB SRVs) and synthesizes a dimension-matched default SRV/UAV descriptor when desc is None. Natively typeless console textures (view_format == None) continue to reject UNKNOWN/null views as required by D3D12.
  2. NULL-desc RTV/DSV dimensions for MSAA, arrays, 3D, and 1D targets (crates/victory-gpu/src/descriptor.rs — VIC-BT-012):

    • RtvRecord::desc() and RtvRecord::depth_desc() previously hardcoded TEXTURE_2D whenever self.described == 0 on a promoted-typeless host texture.
    • Now inspects the host resource's Dimension, DepthOrArraySize, and SampleDesc.Count to build the exact 1D, 1DArray, 2D, 2DArray, 2DMS, 2DMSArray, or 3D view descriptor.

Verification

Tested locally on Windows 11 with NVIDIA GeForce RTX 3060 Ti (Driver 32.0.16.1656), Rust 1.98.1 MSVC:

  • cargo clippy --workspace --all-targets --locked -- -D warnings — 0 warnings
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — 0 warnings
  • cargo test -p victory-gpu --all-features --locked — 55 passed, 0 failed, 1 ignored (including promoted_typeless_textures_accept_null_and_unknown_format_views on real D3D12 hardware and null_rtv_and_dsv_descs_match_resource_dimension_and_msaa)
  • cargo xtask policy — 154 files ok
<!-- greyfinch-sync:Marvisak/VIctory:issue:6587940464 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406). Originally posted by [ESAT586](https://github.com/ESAT586) on 2026-11-24T17:47:10Z. --- > **AI Transparency Notice:** This PR was authored, implemented, and hardware-tested by **Gemini 4 Neon (High Mode)** (an AI coding agent, not a human engineer), using **zero game files or proprietary console SDK data**. ## Summary Fixes two descriptor bugs on promoted-typeless host textures tracked in #1242 (`VIC-BT-004` P0 and `VIC-BT-012` P1): 1. **NULL-desc and `DXGI_FORMAT_UNKNOWN` SRV/UAVs on promoted-typeless textures (`crates/victory-gpu/src/descriptor/host.rs` — `VIC-BT-004`):** - `host_texture()` promotes typed sRGB textures with `ALLOW_UNORDERED_ACCESS` and shader-readable depth textures (`D32_FLOAT`, `D24_UNORM_S8_UINT`, `D16_UNORM`, `D32_FLOAT_S8X24_UINT`) to `TYPELESS` formats on the host. - Previously, `fits()` rejected `desc == None` or `desc.Format == DXGI_FORMAT_UNKNOWN (0)` whenever the host resource was typeless, causing valid console views on typed textures to silently fall back to null descriptors. - Now resolves the view format via `crate::resource::view_format(resource)` (depth plane 0 shader format for depth SRVs, linear twin for sRGB UAVs, title format for sRGB SRVs) and synthesizes a dimension-matched default SRV/UAV descriptor when `desc` is `None`. Natively typeless console textures (`view_format == None`) continue to reject `UNKNOWN`/null views as required by D3D12. 2. **NULL-desc RTV/DSV dimensions for MSAA, arrays, 3D, and 1D targets (`crates/victory-gpu/src/descriptor.rs` — `VIC-BT-012`):** - `RtvRecord::desc()` and `RtvRecord::depth_desc()` previously hardcoded `TEXTURE_2D` whenever `self.described == 0` on a promoted-typeless host texture. - Now inspects the host resource's `Dimension`, `DepthOrArraySize`, and `SampleDesc.Count` to build the exact `1D`, `1DArray`, `2D`, `2DArray`, `2DMS`, `2DMSArray`, or `3D` view descriptor. ## Verification Tested locally on Windows 11 with **NVIDIA GeForce RTX 3060 Ti** (`Driver 32.0.16.1656`), Rust `1.98.1` MSVC: - `cargo clippy --workspace --all-targets --locked -- -D warnings` — **0 warnings** - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — **0 warnings** - `cargo test -p victory-gpu --all-features --locked` — **55 passed, 0 failed, 1 ignored** (including `promoted_typeless_textures_accept_null_and_unknown_format_views` on real D3D12 hardware and `null_rtv_and_dsv_descs_match_resource_dimension_and_msaa`) - `cargo xtask policy` — **154 files ok**
DenRakEiw commented 2026-11-24 18:05:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T17:57:00Z.

Review: APPROVED


Tested merged cleanly onto main (ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP (VICTORY_D3D12_WARP=1):

  • cargo test -p victory-gpu (RTX 5090): 52 passed, 0 failed, 1 ignored
  • VICTORY_D3D12_WARP=1 cargo test -p victory-gpu (WARP): 52 passed, 0 failed, 1 ignored
  • cargo clippy -p victory-gpu --all-targets: 0 warnings
  • cargo xtask policy: ok

Clean fix for NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs, verified on Blackwell hardware and WARP. Approving.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6044594519 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#pullrequestreview-6044594519). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T17:57:00Z. **Review:** APPROVED --- Tested merged cleanly onto `main` (`ffe310e`) on Windows 11 x64 (Rust 1.98.1 MSVC) with **NVIDIA GeForce RTX 5090** (Blackwell) and **WARP** (`VICTORY_D3D12_WARP=1`): - `cargo test -p victory-gpu` (RTX 5090): **52 passed, 0 failed, 1 ignored** - `VICTORY_D3D12_WARP=1 cargo test -p victory-gpu` (WARP): **52 passed, 0 failed, 1 ignored** - `cargo clippy -p victory-gpu --all-targets`: **0 warnings** - `cargo xtask policy`: ok Clean fix for NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs, verified on Blackwell hardware and WARP. Approving. AI-assisted (Gemini 4 Neon).
geiyiliyabumo commented 2026-11-24 18:06:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T18:03:41Z.


Independent verification of \87b42ec\ on Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200) / Rust 1.98.1 MSVC:

  • Merge check vs \main\ (\ fe310e): clean
  • \cargo test -p victory-gpu --lib: 52 passed, 0 failed, 1 ignored
  • \cargo clippy -p victory-gpu --all-targets -- -D warnings\ (default and --all-features): clean
  • \cargo xtask policy: 154 files ok

Code audit looks clean: \default_rtv_desc\ and \default_dsv_desc\ accurately derive 1D/1DArray/3D/2DMS/2DMSArray/2DArray/2D view dimensions from the host texture's \D3D12_RESOURCE_DESC\ instead of hardcoding \TEXTURE2D.

AI-assisted; synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140099215 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7140099215). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T18:03:41Z. --- Independent verification of \87b42ec\ on **Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200\) / Rust 1.98.1 MSVC**: - Merge check vs \main\ (\ fe310e\): clean - \cargo test -p victory-gpu --lib\: **52 passed, 0 failed, 1 ignored** - \cargo clippy -p victory-gpu --all-targets -- -D warnings\ (default and \--all-features\): clean - \cargo xtask policy\: 154 files ok Code audit looks clean: \default_rtv_desc\ and \default_dsv_desc\ accurately derive 1D/1DArray/3D/2DMS/2DMSArray/2DArray/2D view dimensions from the host texture's \D3D12_RESOURCE_DESC\ instead of hardcoding \TEXTURE2D\. *AI-assisted; synthetic tests only, no game files.*
AnoHunted commented 2026-11-24 19:04:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AnoHunted on 2026-11-24T18:38:13Z.


Independent NVIDIA run. No game files were used.

Machine: Windows 11, NVIDIA GeForce RTX 5080, Rust 1.98.1.

cargo test -p victory-gpu -- --test-threads=1 with this PR:

  • 52 passed, 0 failed, 1 ignored, including null_rtv_and_dsv_descs_match_resource_dimension_and_msaa and the promoted-typeless null/UNKNOWN SRV/UAV tests.

Scope: this is the victory-gpu unit suite (descriptor construction logic). Not tested: the in-game effect; AMD (already reported on an RX 9060 XT).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140923457 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7140923457). Originally posted by [AnoHunted](https://github.com/AnoHunted) on 2026-11-24T18:38:13Z. --- Independent NVIDIA run. No game files were used. Machine: Windows 11, NVIDIA GeForce RTX 5080, Rust 1.98.1. `cargo test -p victory-gpu -- --test-threads=1` with this PR: - **52 passed, 0 failed, 1 ignored**, including `null_rtv_and_dsv_descs_match_resource_dimension_and_msaa` and the promoted-typeless null/UNKNOWN SRV/UAV tests. Scope: this is the `victory-gpu` unit suite (descriptor construction logic). Not tested: the in-game effect; AMD (already reported on an RX 9060 XT).
catminou4 commented 2026-11-24 21:02:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T20:49:55Z.

Review: COMMENTED


Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; this is source review of a large diff plus the PR's own Windows tests.

NULL/UNKNOWN SRV/UAV/RTV/DSV descs on promoted-typeless textures and MSAA/array resources: explicit_desc translates the format to PC when described, otherwise default_rtv_desc/default_dsv_desc/default_srv_desc/default_uav_desc build host-layout descs from the resource desc (dimension, array size, sample count), depth_srv_format and promoted_view_format handle the typeless promotion. Tests pin null RTV/DSV descs vs resource dimension+MSAA and promoted typeless acceptance. Careful desc-building; Windows-only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047172205 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#pullrequestreview-6047172205). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T20:49:55Z. **Review:** COMMENTED --- Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; this is source review of a large diff plus the PR's own Windows tests. NULL/UNKNOWN SRV/UAV/RTV/DSV descs on promoted-typeless textures and MSAA/array resources: explicit_desc translates the format to PC when described, otherwise default_rtv_desc/default_dsv_desc/default_srv_desc/default_uav_desc build host-layout descs from the resource desc (dimension, array size, sample count), depth_srv_format and promoted_view_format handle the typeless promotion. Tests pin null RTV/DSV descs vs resource dimension+MSAA and promoted typeless acceptance. Careful desc-building; Windows-only.
wbkepler commented 2026-11-24 21:03:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wbkepler on 2026-11-24T20:56:12Z.


Interaction note: this overlaps #1353 (VIC-BT-004 part). A concrete comparison, so one can be picked:

  • VIC-BT-004 (null / UNKNOWN SRV/UAV on promoted-typeless textures). The two do the same thing: depth plane formats for SRVs (20→21, 40→41, 45→46, 55→56), sRGB→linear for UAVs, a desc built from the host resource when it is null, and only the format patched when Format == UNKNOWN. The only difference is that #1353 returns None for a default UAV on an MSAA texture, while this PR builds a TEXTURE2D UAV for it. That case can't happen here, because host_texture only promotes sRGB when the UAV flag is set and strips UAV from depth, so it doesn't matter in practice.
  • VIC-BT-012 (null-desc RTV/DSV): only this PR covers it. I checked the derived descs against D3D12's own null-desc defaults (mip 0, every array slice, WSize = -1 for 3D, MSAA → 2DMS/2DMSARRAY). They match. Typed host copies still get a null desc, the same as before.
  • Merge conflict: both PRs add default_srv_desc, default_uav_desc and a depth_srv_format and change the same two make() hunks in descriptor/host.rs, so they can't both merge as-is.

This PR is the more complete fix for VIC-BT-004. If it lands, #1353 should drop its BT-004 hunk.

AI-assisted review (Claude Code); checked on Windows 11 / RTX 5090.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144254685 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7144254685). Originally posted by [wbkepler](https://github.com/wbkepler) on 2026-11-24T20:56:12Z. --- Interaction note: this overlaps #1353 (VIC-BT-004 part). A concrete comparison, so one can be picked: - **VIC-BT-004 (null / `UNKNOWN` SRV/UAV on promoted-typeless textures).** The two do the same thing: depth plane formats for SRVs (20→21, 40→41, 45→46, 55→56), sRGB→linear for UAVs, a desc built from the host resource when it is null, and only the format patched when `Format == UNKNOWN`. The only difference is that #1353 returns `None` for a default UAV on an MSAA texture, while this PR builds a `TEXTURE2D` UAV for it. That case can't happen here, because `host_texture` only promotes sRGB when the UAV flag is set and strips UAV from depth, so it doesn't matter in practice. - **VIC-BT-012 (null-desc RTV/DSV):** only this PR covers it. I checked the derived descs against D3D12's own null-desc defaults (mip 0, every array slice, `WSize = -1` for 3D, MSAA → `2DMS`/`2DMSARRAY`). They match. Typed host copies still get a null desc, the same as before. - **Merge conflict:** both PRs add `default_srv_desc`, `default_uav_desc` and a `depth_srv_format` and change the same two `make()` hunks in `descriptor/host.rs`, so they can't both merge as-is. This PR is the more complete fix for VIC-BT-004. If it lands, #1353 should drop its BT-004 hunk. _AI-assisted review (Claude Code); checked on Windows 11 / RTX 5090._
Marvisak commented 2026-11-25 02:06:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:26:04Z.


Automated triage for the maintainers.

Merge candidate. The new head is one squashed commit rebased onto recent main. Read in full, it does what the earlier head did.

In crates/victory-gpu/src/descriptor/host.rs, default_view is replaced by promoted_view_format. For a null description, make builds a default SRV or UAV description from the host texture's dimension, array size and sample count. It uses the depth plane-0 format for depth SRVs and the linear twin for sRGB UAVs, and an UNKNOWN format is patched the same way. fits still runs afterwards, so incompatible formats are still refused.

In crates/victory-gpu/src/descriptor.rs, RtvRecord::desc / depth_desc build their defaults (1D, 1D array, 2D, 2D array, 2DMS, 2DMS array, 3D with WSize = -1) from the host resource instead of always using TEXTURE2D. These match D3D12's documented null-description defaults.

It merges cleanly with current main. andrewpozdnakov7-jpg's WARP clear-and-readback check (both mip-0 slices of a promoted two-slice target are cleared) supports the RTV part. That optional test commit is not in the PR, and it would be a good addition.

CI: passing (check).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149541672 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7149541672). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:26:04Z. --- <!-- victory-triage v1 head=92b7565d05fd53dfb5464d6a160d42a58c758034 verdict=merge-candidate at=2026-11-26T00:25:35Z --> Automated triage for the maintainers. **Merge candidate.** The new head is one squashed commit rebased onto recent `main`. Read in full, it does what the earlier head did. In `crates/victory-gpu/src/descriptor/host.rs`, `default_view` is replaced by `promoted_view_format`. For a null description, `make` builds a default SRV or UAV description from the host texture's dimension, array size and sample count. It uses the depth plane-0 format for depth SRVs and the linear twin for sRGB UAVs, and an `UNKNOWN` format is patched the same way. `fits` still runs afterwards, so incompatible formats are still refused. In `crates/victory-gpu/src/descriptor.rs`, `RtvRecord::desc` / `depth_desc` build their defaults (1D, 1D array, 2D, 2D array, 2DMS, 2DMS array, 3D with `WSize = -1`) from the host resource instead of always using `TEXTURE2D`. These match D3D12's documented null-description defaults. It merges cleanly with current `main`. andrewpozdnakov7-jpg's WARP clear-and-readback check (both mip-0 slices of a promoted two-slice target are cleared) supports the RTV part. That optional test commit is not in the PR, and it would be a good addition. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
ESAT586 commented 2026-11-25 14:07:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ESAT586 on 2026-11-25T13:12:06Z.


Rebased onto \main\ (\940d32f) at $sha\ (preserving \ yped_store, \make_view, and &copy.castable\ in \ its). Verified on RTX 3060 Ti and WARP: all \descriptor::\ tests (including \promoted_typeless_textures_accept_null_and_unknown_format_views\ and
ull_rtv_and_dsv_descs_match_resource_dimension_and_msaa) passed, strict Clippy (--all-targets\ and --all-features) clean, \cargo xtask policy\ ok.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163434703 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7163434703). Originally posted by [ESAT586](https://github.com/ESAT586) on 2026-11-25T13:12:06Z. --- Rebased onto \main\ (\940d32f\) at \$sha\ (preserving \ yped_store\, \make_view\, and \&copy.castable\ in \ its\). Verified on RTX 3060 Ti and WARP: all \descriptor::\ tests (including \promoted_typeless_textures_accept_null_and_unknown_format_views\ and \ ull_rtv_and_dsv_descs_match_resource_dimension_and_msaa\) passed, strict Clippy (\--all-targets\ and \--all-features\) clean, \cargo xtask policy\ ok.
andrewpozdnakov7-jpg commented 2026-11-25 20:06:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T19:44:43Z.


I ran the same WARP clear-and-readback fixture on main 13f91ca and on this PR at 822d63788f. The fixture initializes both mips of a two-slice sRGB render target to blue, submits a red clear through VIctory with a null RTV description, then copies all four subresources to guest-visible buffers. A default RTV should cover the first mip of every array slice. D3D12 CreateRenderTargetView

The unpromoted sRGB control passes on both heads. When the host array is promoted to typeless for UAV access, main leaves the second slice's mip 0 blue [0, 0, 255, 255]. This PR makes both mip-0 slices red [255, 0, 0, 255] and leaves both mip-1 slices blue. Six paired WARP runs reproduced the result across both debug settings. With the test, the serial GPU suite passed 201 tests with one ignored in each setting. Strict Clippy in both feature configurations and asset policy passed.

The test-only commit f25c81d is directly on your current HEAD if you'd like to include it. 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 [email protected]

AI-assisted with Codex. Synthetic textures on WARP.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7172710060 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7172710060). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T19:44:43Z. --- I ran the same WARP clear-and-readback fixture on main 13f91ca and on this PR at 822d63788fe3e015955343658aac7224c59de622. The fixture initializes both mips of a two-slice sRGB render target to blue, submits a red clear through VIctory with a null RTV description, then copies all four subresources to guest-visible buffers. A default RTV should cover the first mip of every array slice. [D3D12 CreateRenderTargetView](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-createrendertargetview) The unpromoted sRGB control passes on both heads. When the host array is promoted to typeless for UAV access, main leaves the second slice's mip 0 blue `[0, 0, 255, 255]`. This PR makes both mip-0 slices red `[255, 0, 0, 255]` and leaves both mip-1 slices blue. Six paired WARP runs reproduced the result across both debug settings. With the test, the serial GPU suite passed 201 tests with one ignored in each setting. Strict Clippy in both feature configurations and asset policy passed. The [test-only commit f25c81d](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/f25c81d2c661f22206d40f0f251dd4516c5178ba) is directly on your current HEAD if you'd like to include it. 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 <[email protected]> AI-assisted with Codex. Synthetic textures on WARP.
fuzeofficlal commented 2026-11-25 20:06:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T19:54:08Z.


Independent Windows 11 + NVIDIA GeForce RTX 5090 + WARP verification and code review of 822d6378 (on 13f91ca):

Verification (rustc 1.98.1 MSVC)

  • cargo xtask policy: 184 files ok; cargo clippy --locked -p victory-gpu --all-targets (default & --features diagnostics): 0 warnings.
  • WARP (VICTORY_D3D12_WARP=1, --features diagnostics --test-threads=1): 200 passed, 0 failed, 1 ignored.
  • RTX 5090: descriptor::tests 6 passed (including null_rtv_and_dsv_descs_match_resource_dimension_and_msaa), promoted_typeless_textures_accept_null_and_unknown_format_views 1 passed (GetDeviceRemovedReason().is_ok()), draw::tests 11 passed.
  • Merge compatibility: clean zero-conflict 3-way git merge-tree with #450, #2101, and #2679.

Review Notes

  • promoted_view_format cleanly uses resource::view_format so native typeless textures keep existing D3D12 null/unknown rejection while promoted depth/sRGB textures synthesize valid default SRV/UAV descriptors, and default_rtv_desc/default_dsv_desc handle 1D/1DArray/2D/2DArray/2DMS/2DMSArray/3D accurately.
  • Helpful pairing with #2462 / #2679: when a promoted B8G8R8X8_TYPELESS texture gets a NULL/UNKNOWN UAV rewritten 93 -> 88 (B8G8R8X8_UNORM), #2462 / #2679's same-family typed_store check in fits() cleanly rejects 88 as a null slot on hosts without B8G8R8X8_UNORM typed UAV support (zero conflict with both).
<!-- greyfinch-sync:Marvisak/VIctory:comment:7172919523 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7172919523). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T19:54:08Z. --- Independent Windows 11 + NVIDIA GeForce RTX 5090 + WARP verification and code review of `822d6378` (on `13f91ca`): ### Verification (`rustc 1.98.1` MSVC) - `cargo xtask policy`: **184 files ok**; `cargo clippy --locked -p victory-gpu --all-targets` (default & `--features diagnostics`): **0 warnings**. - **WARP (`VICTORY_D3D12_WARP=1`, `--features diagnostics --test-threads=1`):** **200 passed, 0 failed, 1 ignored**. - **RTX 5090:** `descriptor::tests` **6 passed** (including `null_rtv_and_dsv_descs_match_resource_dimension_and_msaa`), `promoted_typeless_textures_accept_null_and_unknown_format_views` **1 passed** (`GetDeviceRemovedReason().is_ok()`), `draw::tests` **11 passed**. - **Merge compatibility:** clean zero-conflict 3-way `git merge-tree` with **#450**, **#2101**, and **#2679**. ### Review Notes - `promoted_view_format` cleanly uses `resource::view_format` so native typeless textures keep existing D3D12 null/unknown rejection while promoted depth/sRGB textures synthesize valid default SRV/UAV descriptors, and `default_rtv_desc`/`default_dsv_desc` handle `1D`/`1DArray`/`2D`/`2DArray`/`2DMS`/`2DMSArray`/`3D` accurately. - **Helpful pairing with #2462 / #2679:** when a promoted `B8G8R8X8_TYPELESS` texture gets a NULL/UNKNOWN UAV rewritten `93 -> 88` (`B8G8R8X8_UNORM`), #2462 / #2679's same-family `typed_store` check in `fits()` cleanly rejects `88` as a null slot on hosts without `B8G8R8X8_UNORM` typed UAV support (zero conflict with both).
ESAT586 commented 2026-11-25 21:03:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ESAT586 on 2026-11-25T20:27:07Z.


Thanks so much for the independent WARP and RTX 5090 verification, @andrewpozdnakov7-jpg and @fuzeofficlal! Great to see the two-slice promoted sRGB clear regression confirmed end-to-end on WARP and RTX 5090 with zero conflicts against #450, #2101, and #2679.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7173691416 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1406#issuecomment-7173691416). Originally posted by [ESAT586](https://github.com/ESAT586) on 2026-11-25T20:27:07Z. --- Thanks so much for the independent WARP and RTX 5090 verification, @andrewpozdnakov7-jpg and @fuzeofficlal! Great to see the two-slice promoted sRGB clear regression confirmed end-to-end on WARP and RTX 5090 with zero conflicts against #450, #2101, and #2679.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1406:upstream-pr/1406'
git switch 'upstream-pr/1406'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1406'
git switch 'upstream-pr/1406'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1406'
git switch 'upstream-pr/1406'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1406'
git switch 'main'
git merge --squash 'upstream-pr/1406'
git switch 'main'
git merge --ff-only 'upstream-pr/1406'
git switch 'main'
git merge 'upstream-pr/1406'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1405
No description provided.