Shaders: lower pixel shader SV_Coverage input via dx.op.coverage #657
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/657"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by davi713albano-coder on 2026-11-25T04:08:22Z.
Summary
Input::SampleCoverage(SPI_PS_INPUT_ADDRbit 14) incrates/victory-shader/src/emit/lower.rsviadx.op.coverage.i32(opcode91,Attr::ReadNone), instead of falling through toVal::Missing.SV_Coverage(kind == 14,NotInSigin DXIL) from pixel shaderISG1incrates/victory-shader/src/emit/mod.rsif a console container lists it there.ps_sample_coverage_input_reads_coverage_maskincrates/victory-shader/src/emit/valu_tests.rsverifying DXIL validation, container hash, graphics pipeline creation, andHost::drawreadback (coverage mask1on a 1x target).Verification
cargo clippy --workspace --all-targets --locked -- -D warnings,--all-features, andcargo test --workspace --lockedonwindows-latest(ps_sample_coverage_input_reads_coverage_maskpasses DXIL validation and D3D12 draw readback).No title data used. AI-assisted.
Imported from fxceless/victory-fork. Originally posted by JRamos1993 on 2026-11-25T05:27:26Z.
Offline check on the retail shader pack: no program of the title reaches this path. The change is neutral for it.
victory translate --validate --listover the title's full shader pack (26,084 programs) on an RTX 5090,main310c6ebagainst this head merged onto it:mainfails on pixel shaders readingSV_Coverage.So this fix doesn't change anything for this title's shaders as the batch tool translates them. It may still matter for other programs or titles.
AI use: Claude Code with Claude Opus 5.5 ran the pack and wrote this. Nothing from the title is in it.
upstream-sync referenced this pull request2026-11-25 08:08:49 +00:00
Imported from fxceless/victory-fork. Originally posted by HAL9000RELOADED on 2026-11-25T19:29:51Z.
RX 7900 XTX (RDNA3), Windows 10 + #402 for SM 6.6, main
d510ee4: the new testps_sample_coverage_input_reads_coverage_maskpasses on the card with this PR, and fails with the test alone on the base. No other test changed. Run table: #129 (https://github.com/fxceless/victory-fork/pull/129#issuecomment-7172358511).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.