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

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

@⁠wbkepler on GitHub · 2026-11-24 17:35 UTC · original
wbkepler:gpu/typeless-views-and-initial-pso → main · +433 −12 · 5 files · 1 commits · closed without merging

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)
**@⁠wbkepler** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/1353) `wbkepler:gpu/typeless-views-and-initial-pso` → `main` · +433 −12 · 5 files · 1 commits · closed without merging ## 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:28:31 +00:00
github-bot closed this pull request 2026-11-26 04:28:31 +00:00
Author
Owner

@⁠wbkepler on GitHub · 2026-11-24 21:39 UTC · original

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).

**@⁠wbkepler** on GitHub · 2026-11-24 21:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/1353#issuecomment-7145210926) 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

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