shader: hoist DPP quad swizzles and use mode="any" for dpp fixture #563
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/569"
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 R0Y00/Xbox2Windows. Originally posted by KomaGuy on 2026-11-22T12:54:52Z.
Change
Follow-up to #408 and the NVIDIA RTX 5080 hardware report in https://github.com/R0Y00/Xbox2Windows/pull/408#issuecomment-7079197426:
mode="any"forcheck_dpp_draw(matching the#363curveexception):32.0.16.2124, RTX 5060 Ti) refusedCreateGraphicsPipelineStatewithE_OUTOFMEMORYunder-denorm preservespecifically on thecurvefixture (v_log_f32,v_exp_f32,v_rcp_f32,v_mul_legacy_f32), while passing undermode="any"and on WARP/AMD.DPP_BODYexercises the same operations (v_log_f32_dpp,v_exp_f32_dpp,v_rcp_f32_dpp,v_mul_legacy_f32_dpp) and hit the identicalCreateGraphicsPipelineStateE_OUTOFMEMORYfailure on RTX 5080 (driver32.0.16.2101) after #408 switched tocompile_shader()(mode="preserve").check_dpp_drawnow compiles withmode="any"and assertsall(flush_ftz(word) == word for word in expected)on every constant set, matchingcurve.QuadRead*intrinsics out of conditional expressions (tools/pixel_aot.py):emit_quad_swizzle_u32previously returned fast-pathQuadReadAcross*/QuadReadLaneAtcalls inline, causingv_mul_legacy_f32_dppto emitQuadReadLaneAttwice (the second time inside a?:branch) and allowing fast-pathv_cndmask_b32_dppto placeQuadRead*inside a?:branch.uint dpp{idx}_s = QuadRead*(...);unconditionally before the instruction expression, with a unit control incheck_controls.Verification
tests/pixel_aot_check.py binary,ffx_dispatch_aot_check.py,script_state_check.py,bcpack_check.py,resource_ranges_check.py,layout_chunks_check.py,docs_links_check.py,bidi_controls_check.py)./O2builds run in CI; NVIDIA RTX 5080 hardware re-verification requested from @Leyukaka on #408.