Skip to content

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

Closed
wbkepler wants to merge 1 commit into
Marvisak:mainfrom
wbkepler:gpu/typeless-views-and-initial-pso
Closed

wbkepler wants to merge 1 commit into
Marvisak:mainfrom
wbkepler:gpu/typeless-views-and-initial-pso

Conversation

@wbkepler

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

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

AI-assisted (Claude Code).

@wbkepler wbkepler closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant