GPU: recover typeless view formats, avoid caching failed placed textures, and bind initial PSO #1353

Closed
wbkepler wants to merge 1 commit from upstream-pr/1353 into main
wbkepler commented 2026-11-24 17:35:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wbkepler on 2026-11-24T17:35:09Z.


Summary

  • Recovers explicit typed host SRV/UAV descriptors for None or DXGI_FORMAT_UNKNOWN views on typeless-promoted depth and sRGB+UAV textures (descriptor/host.rs, resource.rs: default_srv_desc, default_uav_desc, depth_srv_format, linear_format, null-safe view_format).
  • Checks resource(out).host.is_none() in resource::texture_at() and releases out before caching in PLACED_TEXTURES, preventing failed texture_at calls from leaking or caching broken entries.
  • Passes pipeline from create_list() / create_list_x() into new_list(), binding pipeline::bound(pipeline) when non-null and initializing state.reset(pipeline) (list.rs, draw.rs, pipeline.rs).
  • Adds 3 regression tests (typeless_promoted_textures_accept_default_views, failed_texture_at_is_not_cached_or_leaked, create_list_binds_initial_pipeline).

Verification

  • cargo clippy -p victory-gpu --all-targets -- -D warnings — passed
  • cargo clippy -p victory --features diagnostics --all-targets -- -D warnings — passed
  • cargo test -p victory-gpu — passed (53 passed, 1 ignored)
  • VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_WARP=1 on the 3 new tests — passed
  • cargo xtask policy — passed (154 files ok)
<!-- greyfinch-sync:Marvisak/VIctory:issue:6587732507 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1353). Originally posted by [wbkepler](https://github.com/wbkepler) on 2026-11-24T17:35:09Z. --- ## Summary - Recovers explicit typed host SRV/UAV descriptors for `None` or `DXGI_FORMAT_UNKNOWN` views on typeless-promoted depth and sRGB+UAV textures (`descriptor/host.rs`, `resource.rs`: `default_srv_desc`, `default_uav_desc`, `depth_srv_format`, `linear_format`, null-safe `view_format`). - Checks `resource(out).host.is_none()` in `resource::texture_at()` and releases `out` before caching in `PLACED_TEXTURES`, preventing failed `texture_at` calls from leaking or caching broken entries. - Passes `pipeline` from `create_list()` / `create_list_x()` into `new_list()`, binding `pipeline::bound(pipeline)` when non-null and initializing `state.reset(pipeline)` (`list.rs`, `draw.rs`, `pipeline.rs`). - Adds 3 regression tests (`typeless_promoted_textures_accept_default_views`, `failed_texture_at_is_not_cached_or_leaked`, `create_list_binds_initial_pipeline`). ## Verification - `cargo clippy -p victory-gpu --all-targets -- -D warnings` — passed - `cargo clippy -p victory --features diagnostics --all-targets -- -D warnings` — passed - `cargo test -p victory-gpu` — passed (53 passed, 1 ignored) - `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_WARP=1` on the 3 new tests — passed - `cargo xtask policy` — passed (154 files ok)
upstream-sync closed this pull request 2026-11-24 22:01:28 +00:00
wbkepler commented 2026-11-24 22:02:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wbkepler on 2026-11-24T21:39:07Z.


Closing this in favour of the community PRs that together cover all three items, more completely:

  • VIC-BT-004 (null/UNKNOWN SRV/UAV on typeless-promoted textures): #1406, which also fixes VIC-BT-012 (null-desc RTV/DSV dimensions).
  • VIC-BT-003 (create_list initial pipeline state): #1446.
  • VIC-BT-027 (failed texture_at not cached/leaked): #1422, which also fixes VIC-BT-022 (clear value on non-target textures).

Review notes comparing them with this branch are on each of those PRs.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7145210926 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1353#issuecomment-7145210926). Originally posted by [wbkepler](https://github.com/wbkepler) on 2026-11-24T21:39:07Z. --- Closing this in favour of the community PRs that together cover all three items, more completely: - VIC-BT-004 (null/`UNKNOWN` SRV/UAV on typeless-promoted textures): #1406, which also fixes VIC-BT-012 (null-desc RTV/DSV dimensions). - VIC-BT-003 (`create_list` initial pipeline state): #1446. - VIC-BT-027 (failed `texture_at` not cached/leaked): #1422, which also fixes VIC-BT-022 (clear value on non-target textures). Review notes comparing them with this branch are on each of those PRs. _AI-assisted (Claude Code)._

Pull request closed

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