Repository navigation
GPU: strip unsupported UAV/RT format flags and skip redundant pipeline library write - #2180
n-romanovich wants to merge 1 commit into
Conversation
a633e0c to
e408cd8
Compare
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Unsupported UAV/RT format flags stripped + redundant... skipped — format-flag sanitization for host pipelines.
e408cd8 to
e1bf670
Compare
… (victory #2180) Port of Marvisak/VIctory#2180 by n-romanovich (GPL-3.0-or-later). host_desc queries D3D12_FEATURE_FORMAT_SUPPORT and widens a format to a family member that supports UAV/render-target, or drops the flag, so CreateCommittedResource stops refusing textures like B5G5R5A1_UNORM. save() no longer re-serialises the (1+ GiB) library when only the early list changed. Adapted to ours: kept the streaming write_library save (no in-memory blob) and its 0 byte count on the early-list-only path; the new test uses our texture()/make_texture helpers; dropped the duplicate RENDER_TARGET const.
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present, so the hardware-only shader checks run. I merged this PR's head AI-assisted (Claude Code); no game data. |
|
Automated triage for the maintainers. Merge candidate. The PR now holds only the format-support change. For the maintainer:
Reply to @n-romanovich: thanks, all three points are addressed (the split, the reused cache, the logged handling of later views), plus the title evidence. Generated by Claude Code |
e1bf670 to
a4abd07
Compare
|
@Marvisak, updated
|
|
Measured on an RTX 3070 with a 3,843 MB library (27,160 pipelines): read whole it is one 3,665 MB private allocation for the run, and AI-assisted. |
|
RTX 4060 Laptop (610.47): merges cleanly onto main 13f91ca but does not build ( |
|
Automated triage for the maintainers, second look (a review against current Closing because it does not build on If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Summary
resource.rs(host_desc): QueryD3D12_FEATURE_FORMAT_SUPPORT(format_support1) and strip or widenALLOW_UNORDERED_ACCESS/ALLOW_RENDER_TARGETwhen a format (such asB5G5R5A1_UNORMorB4G4R4A4_UNORM) cannot support or cast to a format supporting those flags, preventing D3D12GetResourceAllocationInfo/CreateCommittedResourcefailures. Adds unit testhost_desc_strips_unsupported_uav_and_rt_flags.pipeline/library.rs(save): Whenl.added == 0 && !l.prebuilt_changedand onlyearly-pipelines.txtchanged, skip re-serializing and rewriting the 1+ GiBhost-pipelines.binblob.Verification
Tested on NVIDIA GeForce RTX 5060 Ti:
cargo test --release -p victory-gpu --lib -- resource::tests pipeline::library:19 passed; 0 failed