Repository navigation
Conversation
The bindless and draw tests took the root signature from the compiled
shader. Wine's d3dcompiler_47 (vkd3d-shader) drops [RootSignature]
("W5302: Ignoring unknown attribute") and has no rootsig target, so
CreateRootSignature failed (E_FAIL) and the tests with it under Wine and
Proton.
test_root makes the root signature from the RS string each source
already defines, with D3D12SerializeRootSignature (version 1.0), and the
tests pass it with the pipeline, on every host. The sources are
unchanged.
Under Proton Experimental's Wine (11.0) with vkd3d-proton on an RTX 3050
Laptop, the victory-gpu lib tests go from 129 passed / 14 failed to 135
passed / 10 failed (four fixed, two new). Under Ubuntu's Wine 10.0 the
compiler gives SM 5.1 resources a garbage register space ("dxil-spirv:
Failed to remap SRV 17476:0"), so these tests still fail there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib draw::tests::— 5 passed, 0 failed on RTX 5090cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (184 files ok)
Clean test_root builder constructing root signatures directly from each test shader's RS string. Looks good.
AI-assisted (Gemini 4 Neon).
|
Native Windows comparison on the same GPU model as the Proton report (RTX 3050 Laptop, driver 32.0.16.1062). The depth-UAV readback and cross-format placed-view tests both passed on parent To check for silent skips, I repeated the PR run with a print immediately after successful Reproduce the unmodified run with |
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.
GPU tests: root signatures from each shader's RS string — root-signature coverage tests; Windows-only.
|
RX 9070 XT (RADV) under Wine 11.22: the same four tests fixed Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1. System Wine 11.22 with its builtin
Not run: Windows, clippy. AI-assisted (Claude Code); numbers from my own runs. |
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. The PR adds a test-only module Generated by Claude Code |
Several
victory-gpuGPU tests fail under Wine and Proton before they test anything. They take the root signature from the compiled shader (CreateRootSignature(0, bytes)), and Wine'sd3dcompiler_47(vkd3d-shader) doesn't keep one: it logsW5302: Ignoring unknown attribute "RootSignature". It also has norootsig_1_0target (E_NOTIMPL), so theRSstring can't be compiled alone either.CreateRootSignaturethen fails withE_FAIL.The change
#[cfg(all(windows, test))]modulecrate::test_root. It reads the#define RS "..."string each test shader already has, describes it as aD3D12_ROOT_SIGNATURE_DESC, and makes it withD3D12SerializeRootSignature, version 1.0, so every descriptor is volatile, the most permissive choice.numDescriptors, alsounbounded, andspace), root SRV/UAV/CBV, andRootConstants.bindless::tests::compileanddraw::tests::compile_cspass that root signature with the pipeline, on every host. No shader source changes. On Windows the shader still carries its own root signature, and the pipeline uses the one passed in.Results
RTX 3050 Laptop GPU,
x86_64-pc-windows-msvccross-build (lld-link + xwin), run under Proton Experimental's own Wine (11.0) with its vkd3d-proton and DXVKdxgi. This is the setup Linux users of VIctory have.mainFixed:
bindless::tests::heap_views_are_current,bindless::tests::heap_views_follow_writes_through_another_mapping,draw::tests::root_views_reach_their_copy_and_read_zeros_past_it,draw::tests::unordered_1d_and_3d_textures_keep_their_writes. The other two passes are the new tests. Nothing that passes onmainfails here.The 10 still failing, none of them from root signatures:
indirect::tests::*(5): the runtime argument clamp doesn't compile under Wine (RWByteAddressBuffer.Load): Wine/vkd3d: indirect execution is dropped because the argument clamp cannot be compiled there; rewriting its HLSL does not help #170, Wine: the indirect argument clamp does not compile with Wine's HLSL compiler, so every indirect execution is dropped (fix on a branch) #909, GPU: our compute shaders compiled by the build on Windows #2093.draw::tests::a_depth_texture_written_through_unordered_views_reads_as_depth: "the conversion ran in the list". The runtime depth converter intwin.rsdoesn't compile under Wine (Wine: 16-bit depth written through unordered views stays clear, because the converter shader does not compile #1860, GPU: our compute shaders compiled by the build on Windows #2093).draw::tests::a_texture_written_in_one_format_reads_in_another_through_a_placed_view: "round 0: one host texture" (leftfalse). The host refuses the castable formats here, so VIctory falls back to two textures and a copy.memory::tests::lists_share_a_table_and_copies_keep_their_views: Wine's compiler has no SM 5.1 resource arrays (Unbounded resource arraysnot implemented), and that indexing is what the test is about. Left as it is.descriptor::host::tests::dynamic_slots_are_held_until_released: the 1,000,000 view heap cap (NVIDIA D3D12 (70564ae): stride_tests & synthetic_tests fail due to HEAP_VIEWS (2M > 1M NVIDIA limit) and Stride::Structured with rawBufferLoad #1835, Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #1744).pipeline::library::tests::a_rejected_blob_gives_an_empty_library: GPU: the host pipeline library works under Wine (null blob for an empty library) #1722.Under Ubuntu's Wine 10.0 these tests still fail, now at
CreateComputePipelineState. That older compiler gives SM 5.1 resources a garbage register space, and vkd3d-proton reportsdxil-spirv: Failed to remap SRV 17476:0.Not run on Windows. I expect no change there, since the tests now pass the same root signature the shader embeds, but CI is the first Windows run.
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, with and without--all-features: clean.No game data was used.
🤖 Generated with Claude Code