Repository navigation
Conversation
b437a17 to
f307c7f
Compare
|
Reviewed and tested Hardware check & code reviewOn RTX 5090, Three remaining gaps worth noting on mixed widened/native paths:
Verification (Windows 11, RTX 5090 + WARP)
|
|
Correct bit-replication expansion (5->8 as v<<3|v>>2, 4->8 as v<<4|v, A1 -> 0/255) and the widening is applied at every seam that names a format: RTV record, view fits(), resolve formats, and both copy entry points guarded by skip_mixed_packed_copy for cross-element cases. Relates to #2442 (which drops UNORDERED on unviewable formats): this widens 86/115 to RGBA8 so the views become legal - complementary, and once both land the flag survives where it can. |
|
Independent WARP/CPU verification of Review: Packed 16-bit render targets and UAVs become R8G8B8A8_UNORM only where the host lacks support (
Results (WARP/CPU):
Negative control (mutating the PR head): removing the bit replication for the 5-bit channels, or the alpha replication in the 4-bit format, makes Method: no physical GPU. AI disclosure: this verification was done by Claude Code / Claude Sonnet 5.5. |
|
Tested on RTX 3070 Ti, driver 610.88, Windows 11 26300, rustc 1.98.1. main 13f91ca. Head f307c7f (fast-forward on main).
Covers both formats and both uses, and keeps the writes. Same approach as #89 and as the VItoriaBr fork, which reaches the world on an RTX 5060 Ti. Probe calls (Claude Code, Claude Opus 5.5.) |
|
Automated triage for the maintainers. The approach is sound and well evidenced (debug-layer errors and
This also overlaps #89 (the original of this change, credited in the description) and takes a different approach from #2773 (drop the uses the device refuses). A maintainer should choose one direction. Minor: the Generated by Claude Code |
Summary
Rebased adaptation onto
main(13f91ca) of #89 (by @HenriqueSBueno, currently markedtriage: needs rebase), addressing theDXGI_ERROR_INVALID_CALL(0x887A0001) device removal on NVIDIA GPUs reported in #2725 and #1753.On NVIDIA (tested on RTX 3050, driver
32.0.16.2101),B4G4R4A4_UNORM(115) fails render-target creation andB5G5R5A1_UNORM(86) fails typed UAV creation/allocation queries:CreateCommittedResource3/CreateCommittedResource:D3D12_CLEAR_VALUE::Format/D3D12_RESOURCE_DESC::Format is B4G4R4A4_UNORM(id=817,id=599)GetResourceAllocationInfo/CreateUnorderedAccessView:B5G5R5A1_UNORM(0x56) does not support typed UAVs (id=599,id=342)Changes
CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)once per packed 16-bit format (86,115) viaresource::target_format, widening render-target and unordered-access textures (and their clear values, RTVs, pipeline RT formats, andResolveSubresourceformats) toR8G8B8A8_UNORM(28) when unsupported. Sampled-only textures keep their native format.target_formatinshared_textureafter merging flags from aliased title textures at the same address so a sampled texture promoted toRENDER_TARGET/UNORDEREDdoes not keep format115/86.descriptor::host::fitsandresource::view_formatso views of widened targets resolve toR8G8B8A8_UNORM.CopyTextureRegionuploads inprepare_footprint_upload(while preservinglist.defer_fillfor unchanged footprints) and skip mixed packed/widened GPU-to-GPU copies/resolves.B5G5R5A1_UNORM/B4G4R4A4_UNORMrow expansion.Verification
Tested on Windows 10 (build 26200), Intel Core i7-9700KF, NVIDIA GeForce RTX 3050 (driver
32.0.16.2101), diagnostics build withVICTORY_D3D12_DEBUG=1:13f91ca):host GPU device removed(0x887A0001) ~12 s after the heap loop at frame ~52 with the 4 D3D12 errors above.packed 16-bit render targets are R8G8B8A8_UNORM on this GPU; title boots and runs past frame 1,024 at ~30 fps with zerono host textureorRemoveDeviceerrors.cargo clippy --workspace --all-targets --locked -- -D warnings: passcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passcargo xtask policy: pass (184 files ok)cargo test -p victory-gpu --locked: 194 passed, 2 failed (the pre-existing NVIDIA 1,000,000-view heap-cap assertionsdynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_viewsfrom NVIDIA D3D12 (70564ae): stride_tests & synthetic_tests fail due to HEAP_VIEWS (2M > 1M NVIDIA limit) and Stride::Structured with rawBufferLoad #1835), 1 ignored.Related: #2725, #1753, #89.