Repository navigation
Conversation
…l shaders Pixel shaders that wait for overlapping earlier waves read the SGPR after the primitive mask and src_pops_exiting_wave_id. Both now have a value (no overlap, nothing exited: the host orders nothing), so the wait is skipped. 10 PS_PedTexturedCutOutTint_Zero programs translate and validate.
Census of 2026-11-26: the 195 GS_VoxelizeGeneric failures drop no draws; the 10 POPS pixel shaders are fixed; the 5 CS_TraceShadowRays_* need view addresses by heap slot from leonida-gpu.
|
Looks good to me. One question: the collision SGPR is found as the largest |
|
Thanks for the review. I looked for one: the native program record does not carry a user SGPR count for pixel shaders.
The root layout is the user-data map the console compiler emits: every user SGPR is filled from a root parameter, so a user SGPR outside the layout would have nothing to hold. That is why the end of the layout is taken as the end of the user SGPRs. If we find where the PS |
What changed
R-7 (partial): the 10
PS_PedTexturedCutOutTint_Zeropixel shaders that failed with "emit: a hardware SGPR input" now translate. They wait for earlier waves of overlapping pixels (POPS) and read the SGPR after the primitive mask andsrc_pops_exiting_wave_id; both now read as "no overlap" (markedshortcut:, the host orders nothing), so the wait is skipped. The R-7 row and the fork notes record the 2026-11-26 recount: the 195GS_VoxelizeGenericfailures drop no draws, and the 5CS_TraceShadowRays_*need view addresses by heap slot fromleonida-gpu.How it was tested
Checks run on this branch:
cargo test --workspace --locked: 656 passed, 0 failed, 18 ignored (run with-j 2 -- --test-threads=4)cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policyNew unit test:
io::tests::ordered_pixels_read_the_collision_sgpr(the SGPR is an input only when the shader readssrc_pops_exiting_wave_id).Full
leonida translate --list --validate --jobs 2with a release build, compared program by program with the census of the base tree (together with the lane-mask fix sent as a separate PR):No program that translated before fails now, and none changed its cause. The 216 DXIL validator failures are the same 216 programs, with the same messages, on the base commit; none of the 10 fixed shaders is among them.
AI