Repository navigation
Conversation
|
merge-check AI-written and posted by Foniass without a human check of each point. |
bmjask
left a comment
There was a problem hiding this comment.
Review of 06c0be7d: 1 finding(s). These are on lines outside the diff:
crates/xcl/src/gpu/dxil/lower_valu.rs:1263: The fix only routes Plain, non-guarded f16 class compares onto the quadReadLaneAt path. Any PS VOPC that misses the gate (SDWA/DPP forms like v_cmp_class_f16_sdwa, or a set guard_override) still goes vopc_write -> write_mask -> ballot_ps and emits dx.op.quadOp. A pixel shader running such a compare on a value derived from v_readfirstlane still hits the #134 amdxc64 crash pattern on RDNA2/3/4. Changing ballot_ps (or write_mask in PS) to read across the quad with quadReadLaneAt would cover every VOPC at once instead of adding one opcode/type at a time.
These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.
|
@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any. |
|
Closing: predates |
What is in it
Routes Direct DXIL pixel-shader
V_CMP_CLASS_F16andV_CMPX_CLASS_F16through the shared VOPC quad-read operand ballot path instead of returning early viavopc_write(crates/xcl/src/gpu/dxil/lower_valu.rs):ty == "f16"withopn == "class", extracts the selected half and appliesABS/NEGtoua, then selects"f16_class"instead of callingvopc_writeearly.Variant::Plain, noguard_override),V_CMP_CLASS_F16/V_CMPX_CLASS_F16now quad-read VGPR operands withdx.op.quadReadLaneAt.i32(neverdx.op.quadOp, matching#134) and short-circuitDst::Nullwith zero quad reads."f16_class"insidevopc_condusingfclass16(ua)shifted/masked againstub, keeping the non-PS path identical.V_CMP_CLASS_F16,V_CMPX_CLASS_F16, andVDST=125null destination) and a real-GPU triangle-edge pixel-shader test (V_CMPX_CLASS_F16+V_CMP_CLASS_F16withNEG=1+ DPP quad derivatives) incrates/xcl/src/gpu/dxil/lanes.rs, guarded onrunner::wave32_supported()anddxc::location().Tested
direct_ps_cmp_class_f16_uses_quad_read_lane_at_not_quad_opfailed onorigin/mainbecauseV_CMP_CLASS_F16/V_CMPX_CLASS_F16emitteddx.op.quadOp.i32instead ofdx.op.quadReadLaneAt.i32.cargo test -p xcl --lib -- ps_ballot_tests:: cmp_class fclass): 15 passed, 0 failed (including both newV_CMP_CLASS_F16/V_CMPX_CLASS_F16unit and GPU triangle-edge tests).cargo test --workspace -j 2 -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::with DXC 1.9.2609.5): 41 test binaries, 2717 passed, 0 failed, 49 ignored, 9 filtered; 27SKIPPED(22no wave64on RTX 5070 Ti, 3 per-lane#1426refused, 2no heap windows).Regression run
Baseline (
mainancestorf0e8fdd5c3942ddd399d5ee11384c8595c5aacff):This PR (
06c0be7d4610113b51f969bc189976b3209bc6e1):Not tested
dx.op.quadOpand presence ofdx.op.quadReadLaneAt.i32).test_title_runs_and_game_folder_is_untouchedanduma_driver::tests::(skipped during the workspace run).AI use
Used an AI coding assistant to locate the early
vopc_writereturn inlower_valu.rs, write the fix and synthetic unit/GPU tests, and verify the workspace tests and smoke run.