Repository navigation
Conversation
|
Hardware run on head of this PR, AMD RDNA3:
|
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows; macOS covers lowering/structure unit tests.
PS SV_Coverage input lowered via dx.op.coverage: ps_sample_coverage_input_reads_coverage_mask renders and checks the coverage mask per sample.
|
Rebased onto 70564ae. Conflicts were in the test module only: upstream added its own tests/helpers, and |
bbe091e to
14ca121
Compare
|
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug, AI-assisted (Claude Code). Synthetic tests only. |
14ca121 to
16ce8f3
Compare
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
|
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at |
|
Hardware run on an RX 7800 XT (RDNA3), Windows 10 19045, SM 6.6 through the Agility runtime staged for the test binaries (#486): the whole |
Model the full COMPUTE_PGM_RSRC2.TG_SIZE_EN layout ({first_wavefront, 14'b0, wave_id[10:0], wave_count[5:0]}), lower s_get_waveid_in_workgroup in compute and mesh stages, and share wave_id() with MergedWaveInfo. Drop SampleCoverage in favour of Marvisak#1686.
main added HostShader::view_marks; the test this branch adds predates it.
16ce8f3 to
0bbde51
Compare
Implements #1530.
Ports the fix from @davi713albano-coder's fork (commit c0f6d69 by Davi713), applied unchanged onto
ffe310e; the commit keeps its original author.Summary
io::raisealready liftedSPI_PS_INPUT_ADDRbit 14 toInput::SampleCoverage, butemit::lowerrefused it as "a pixel system input".Input::SampleCoveragenow lowers to DXILdx.op.coverage.i32(opcode 91,ReadNone).SV_Coverage(kind == 14) is stripped from the pixelISG1before emission when a console container lists it there, since DXIL declares itNotInSigfor pixel inputs.Test
New synthetic pixel-shader test
ps_sample_coverage_input_reads_coverage_mask: SPI input bit 14,ISG1stripping, dxil.dll validation and container hash, plus a live D3D12 draw readback on a 1x target asserting the covered pixel reads the full mask.Validation
cargo test -p victory-shader --locked -- --test-threads=1 --skip emit::valu_tests --skip emit::waterfall_tests— passed (102 tests, 1 ignored).cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).