Repository navigation
Conversation
|
Two facts for bec4bfa, from reading the diff and Mesa's register database (not run):
AI-assisted (Claude Code). |
|
This PR has no CI run yet, so I ran the CI's checks at head
|
|
Good catch @TG0000 — pushed a fix moving Thanks @shortselow-byte for running the full CI check on RDNA2! |
|
Automated triage for the maintainers. Closing because this change is already in Uninitialised pixel SGPRs are handled in main (io.rs initialized_sgprs; lower.rs inputs(): the primitive mask and the ordered-section collision id read 0, others as in compute). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Extends #432 (
ComputeIo::initialized_sgprs()) to pixel shaders.Changes
SPI_SHADER_PGM_RSRC2_PSfrom pixel stage data (E+0x128) intoStageIo::Ps::rsrc2.ps_initialized_sgprs(rsrc2)counting GFX10.3/RDNA2 pixel hardware-initialized SGPRs:USER_SGPR(bits 1-5 plusUSER_SGPR_MSBat bit 27; bits 28-31 areSHARED_VGPR_CNT),prim_mask(always present),WAVE_CNT_EN(bit 7),LOAD_COLLISION_WAVEID(bit 25),LOAD_INTRAWAVE_COLLISION(bit 26), andSCRATCH_EN(bit 0).StageIo::initialized_sgprs()and wire it intoio::raiseso general SGPRs (0..=105) at or above the initialized count read as zero inemit::lower, while hardware-initialized SGPRs (such asprim_mask, POPS collision wave ID, and the scratch wave offset) remain refused with"a hardware SGPR input".native.rsand an end-to-end emission +dxil.dllvalidation regression test inemit/mod.rs.Validation
cargo xtask policy— 154 files okcargo clippy --workspace --all-targets --locked -- -D warnings— cleancargo clippy --workspace --all-targets --all-features --locked -- -D warnings— cleancargo test --workspace --locked— 344 passed, 0 failed, 6 ignored (Windows 11, RTX 3080, Rust 1.98.1)victory translate --validateon local shader archive (26,084 programs, SDK 10.0.26100.0dxil.dll):emit: a hardware SGPR inputdrops from 17 to 14 (the 3 programs reading an uninitialized SGPR advance to a later unsupported reason; the remaining 14 read hardware-initializedprim_maskor POPS collision wave ID and stay refused). Validated counts unchanged (12,155 VS/PS, 1,417 CS, 8,152 MS), 0 regressions. Not tested in gameplay.AI-assisted (Antigravity).