Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Tested merged cleanly onto main (ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP (VICTORY_D3D12_WARP=1):
cargo test -p victory-gpu(RTX 5090): 52 passed, 0 failed, 1 ignoredVICTORY_D3D12_WARP=1 cargo test -p victory-gpu(WARP): 52 passed, 0 failed, 1 ignoredcargo clippy -p victory-gpu --all-targets: 0 warningscargo xtask policy: ok
Clean fix for NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs, verified on Blackwell hardware and WARP. Approving.
AI-assisted (Gemini 4 Neon).
|
Independent verification of \87b42ec\ on Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200) / Rust 1.98.1 MSVC:
Code audit looks clean: \default_rtv_desc\ and \default_dsv_desc\ accurately derive 1D/1DArray/3D/2DMS/2DMSArray/2DArray/2D view dimensions from the host texture's \D3D12_RESOURCE_DESC\ instead of hardcoding \TEXTURE2D. AI-assisted; synthetic tests only, no game files. |
|
Independent NVIDIA run. No game files were used. Machine: Windows 11, NVIDIA GeForce RTX 5080, Rust 1.98.1.
Scope: this is the |
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; this is source review of a large diff plus the PR's own Windows tests.
NULL/UNKNOWN SRV/UAV/RTV/DSV descs on promoted-typeless textures and MSAA/array resources: explicit_desc translates the format to PC when described, otherwise default_rtv_desc/default_dsv_desc/default_srv_desc/default_uav_desc build host-layout descs from the resource desc (dimension, array size, sample count), depth_srv_format and promoted_view_format handle the typeless promotion. Tests pin null RTV/DSV descs vs resource dimension+MSAA and promoted typeless acceptance. Careful desc-building; Windows-only.
|
Interaction note: this overlaps #1353 (VIC-BT-004 part). A concrete comparison, so one can be picked:
This PR is the more complete fix for VIC-BT-004. If it lands, #1353 should drop its BT-004 hunk. AI-assisted review (Claude Code); checked on Windows 11 / RTX 5090. |
|
Automated triage for the maintainers. Merge candidate. The new head is one squashed commit rebased onto recent In In It merges cleanly with current CI: passing ( Generated by Claude Code |
|
Rebased onto \main\ (\940d32f) at $sha\ (preserving \ yped_store, \make_view, and ©.castable\ in \its). Verified on RTX 3060 Ti and WARP: all \descriptor::\ tests (including \promoted_typeless_textures_accept_null_and_unknown_format_views\ and |
87b42ec to
e68dade
Compare
e68dade to
822d637
Compare
|
I ran the same WARP clear-and-readback fixture on main 13f91ca and on this PR at 822d637. The fixture initializes both mips of a two-slice sRGB render target to blue, submits a red clear through VIctory with a null RTV description, then copies all four subresources to guest-visible buffers. A default RTV should cover the first mip of every array slice. D3D12 CreateRenderTargetView The unpromoted sRGB control passes on both heads. When the host array is promoted to typeless for UAV access, main leaves the second slice's mip 0 blue The test-only commit f25c81d is directly on your current HEAD if you'd like to include it. Please retain the Git author on cherry-pick or rebase. If you fold the test into another commit, please add the following trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic textures on WARP. |
|
Independent Windows 11 + NVIDIA GeForce RTX 5090 + WARP verification and code review of Verification (
|
|
Thanks so much for the independent WARP and RTX 5090 verification, @andrewpozdnakov7-jpg and @fuzeofficlal! Great to see the two-slice promoted sRGB clear regression confirmed end-to-end on WARP and RTX 5090 with zero conflicts against #450, #2101, and #2679. |
…ess textures and MSAA/array/3D NULL RTV/DSVs
…/array/3D NULL RTV/DSVs AI-authored and verified by Gemini 4 Neon (High Mode) — zero game data used. Fixes VIC-BT-004 (P0) and VIC-BT-012 (P1) from Marvisak#1242: - `crates/victory-gpu/src/descriptor/host.rs`: when a typed console texture was promoted to a typeless host copy (`host_texture` for sRGB+UAV or shader-readable depth targets), `fits()` previously rejected NULL-desc and `DXGI_FORMAT_UNKNOWN` SRV/UAVs, replacing them with null views. Now resolves the promoted view format (shader-readable depth plane 0 format for depth SRVs, linear twin for sRGB UAVs, title format for sRGB SRVs) and synthesizes a dimension-matched default SRV/UAV description when `desc` is `None`. - `crates/victory-gpu/src/descriptor.rs`: `RtvRecord::desc()` and `RtvRecord::depth_desc()` previously hardcoded `TEXTURE_2D` for NULL-desc RTV/DSVs on promoted-typeless targets; now inspect the host texture's `Dimension`, `DepthOrArraySize`, and `SampleDesc.Count` to emit the exact `1D`, `1DArray`, `2D`, `2DArray`, `2DMS`, `2DMSArray`, or `3D` view desc. - Adds unit tests plus a real D3D12 hardware test verifying NULL/UNKNOWN views on promoted sRGB+UAV and 2D-array depth textures on the host GPU.
822d637 to
92b7565
Compare
…ess textures and MSAA/array/3D NULL RTV/DSVs
Summary
Fixes two descriptor bugs on promoted-typeless host textures tracked in #1242 (
VIC-BT-004P0 andVIC-BT-012P1):NULL-desc and
DXGI_FORMAT_UNKNOWNSRV/UAVs on promoted-typeless textures (crates/victory-gpu/src/descriptor/host.rs—VIC-BT-004):host_texture()promotes typed sRGB textures withALLOW_UNORDERED_ACCESSand shader-readable depth textures (D32_FLOAT,D24_UNORM_S8_UINT,D16_UNORM,D32_FLOAT_S8X24_UINT) toTYPELESSformats on the host.fits()rejecteddesc == Noneordesc.Format == DXGI_FORMAT_UNKNOWN (0)whenever the host resource was typeless, causing valid console views on typed textures to silently fall back to null descriptors.crate::resource::view_format(resource)(depth plane 0 shader format for depth SRVs, linear twin for sRGB UAVs, title format for sRGB SRVs) and synthesizes a dimension-matched default SRV/UAV descriptor whendescisNone. Natively typeless console textures (view_format == None) continue to rejectUNKNOWN/null views as required by D3D12.NULL-desc RTV/DSV dimensions for MSAA, arrays, 3D, and 1D targets (
crates/victory-gpu/src/descriptor.rs—VIC-BT-012):RtvRecord::desc()andRtvRecord::depth_desc()previously hardcodedTEXTURE_2Dwheneverself.described == 0on a promoted-typeless host texture.Dimension,DepthOrArraySize, andSampleDesc.Countto build the exact1D,1DArray,2D,2DArray,2DMS,2DMSArray, or3Dview descriptor.Verification
Tested locally on Windows 11 with NVIDIA GeForce RTX 3060 Ti (
Driver 32.0.16.1656), Rust1.98.1MSVC:cargo clippy --workspace --all-targets --locked -- -D warnings— 0 warningscargo clippy --workspace --all-targets --all-features --locked -- -D warnings— 0 warningscargo test -p victory-gpu --all-features --locked— 55 passed, 0 failed, 1 ignored (includingpromoted_typeless_textures_accept_null_and_unknown_format_viewson real D3D12 hardware andnull_rtv_and_dsv_descs_match_resource_dimension_and_msaa)cargo xtask policy— 154 files ok