fix(shader): select the completed difference for SDWA subtract with borrow #2842
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2850"
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 brainbudt on 2026-11-26T13:39:27Z.
Problem
On the RX 5700 XT with driver 32.0.21045.29003, the uniform SDWA add-to-subtract chain in #2731 returned the subtrahend in channel 1 for all three fixture rows. Supplying the same borrow through the constant buffer gave the expected words.
Change
Use the incoming VCC predicate to select the completed 32-bit difference: with a borrow,
~(b - a)equalsa - b - 1modulo 2^32; without a borrow, usea - b. DXC 1.9.2602.17 emits a select in the optimized pixel shader. The existing borrow-out calculation and SDWA destination placement still apply.Scope
Refs #2731. Changes the pixel AOT lowering of
v_sub_co_ci_u32_sdwaand adds a static regression control to the existing integer SDWA fixture. Hardware verification on RX 5700 XT (ctest --preset dev --no-tests=error -R '^pixel_aot_sdwa_int_extra_hardware$' -V) is requested.Verification
python3 -B tests/pixel_aot_check.pypassed (including after rebasing onto2c56d89); the new control failed against the original lowering and passed with the patch.python-linuxchecks and all 134 LLVM 15.0.7pixel-binarychecks passed.draw-sdwa-int-extrapassed and detected all 13 mutants; separate draws matched all four channels across all 4,096 pixels per row (channel 1:0000fffc,00000005,0000ffff).Reviewed with mistral-loop: APPROVE (1 round,
mistral-large-4-0+deepseek-v4-1-flash-1017).Created with gpt-6.2-astra in Codex (orchestrated with Gemini 4 Neon in T3 Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:51:08Z.
Review: COMMENTED
Review of head
8ef66710against current main.What I checked:
~(b - a)in uint arithmetic isa - b - 1, which is thesub_co_ciresult. Without a borrow the result staysa - b(cp). The borrow-out and SDWA destination placement are unchanged.v_sub_co_ci_u32_sdwachanges.subrevandaddkeep the table template. If the same driver behavior shows onsubrev, it would need its own slice (not required here).check_sdwa_int_extra_controlspins the select expression. Mutating the fix back tocp - cimakestests/pixel_aot_check.pyfail (rc 1, control sub-checkcheck_sdwa_int_extra_controls). The assert is a text check, but the value path is executed by the existingpixel_aot_sdwa_int_extra_warp/_hardwaretests, which pass.Commands executed locally:
python3 -B tests/pixel_aot_check.pyrc 0python3 -B tests/startup_gfx2hlsl_add_sub_co_ci_check.pyokpython3 tests/docs_links_check.py,python3 tests/bidi_controls_check.pyokgit diff --check origin/main...HEADcleanctest -R '^pixel_aot_'202/202 both, receipt in the next comment.Real-GPU run not available (RunPod stopped). The RX 5700 XT result the PR asks for stays with someone who has that card.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:51:09Z.
Win2025 WARP receipt for head
8ef66710. Tests that cover the change: pixel_aot_sdwa_int_extra_warp (dev + release) and pixel_aot_sdwa_int_extra_hardware (WARP adapter), plus tests/pixel_aot_check.py.Real-GPU run not available (RunPod stopped).
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
8ef6671057be36c97a72b5cb4f7d23c200ff5a89:--preset dev):cmake --build --preset dev -- -j 2):0.00s(configure0.00s)ctest --preset dev -R '^pixel_aot_' --parallel 2 --no-tests=error --output-on-failure): 202/202 passed (296.14s:pixel_aot_bits_warp14.18s,pixel_aot_warp16.19s,pixel_aot_three_way_warp7.60s,pixel_aot_core_vector_warp16.80s,pixel_aot_buffer_color_warp7.79s,pixel_aot_predicate_rounding_warp8.17s,pixel_aot_comparisons_warp10.65s,pixel_aot_cvt_f64_f32_warp6.30s,pixel_aot_compare_warp12.25s,pixel_aot_blend_scalar_warp8.90s,pixel_aot_blend_scalar_hardware10.65s,pixel_aot_cmpx_regions_warp11.35s,pixel_aot_e64_warp7.76s,pixel_aot_exec_regions_warp5.15s,pixel_aot_f16_arith_warp7.20s,pixel_aot_cmpx_e64_warp7.02s,pixel_aot_cvt_flr_rpi_warp5.21s,pixel_aot_cvt_int_f64_warp4.40s,pixel_aot_gather_warp3.54s,pixel_aot_dpp_f16_warp6.83s,pixel_aot_sample_coarse_gradient_warp2.91s,pixel_aot_cmp_f64_warp4.06s,pixel_aot_f16_round_warp4.67s,pixel_aot_shift64_warp4.80s,pixel_aot_compare_gather_warp4.27s,pixel_aot_f16_fmac_ldexp_warp4.32s,pixel_aot_dpp_extra_warp3.88s,pixel_aot_compare_sample_warp3.15s,pixel_aot_int16_ternary_warp2.96s,pixel_aot_dpp_cvt_warp2.67s,pixel_aot_sample_gradient_warp2.79s,pixel_aot_f16_cvt_int16_warp2.39s,pixel_aot_mac_legacy_warp1.53s,pixel_aot_cmp64_warp3.45s,pixel_aot_region_body_warp2.59s,pixel_aot_cvt_float_int_e64_warp2.18s,pixel_aot_cvt_f64_int_warp3.28s,pixel_aot_f16_to_int16_warp1.79s,pixel_aot_sample_offset_warp2.11s,pixel_aot_cvt_f32_f64_warp1.67s,pixel_aot_div_fmas_warp1.39s,pixel_aot_sample_lod_warp2.13s,pixel_aot_get_lod_warp1.89s,pixel_aot_region_scalar_load_warp1.88s,pixel_aot_scc_skip_warp4.14s,pixel_aot_pk_fmac_warp3.65s,pixel_aot_dmask_warp1.99s,pixel_aot_e64_spellings_warp1.50s,pixel_aot_pack_int16_warp1.22s,pixel_aot_plain_movrel_warp2.07s,pixel_aot_rndne_warp3.35s,pixel_aot_bitset64_warp3.37s,pixel_aot_dpp_movrel_warp1.94s,pixel_aot_int16_vop3_warp2.23s,pixel_aot_compare_lod_bias_hardware2.44s,pixel_aot_compare_lod_level_hardware2.48s,pixel_aot_compare_lod_level_warp3.85s,pixel_aot_compare_lod_bias_warp4.12s,pixel_aot_vop3_ternary_int_warp2.14s,pixel_aot_sdwa_f16_warp3.70s,pixel_aot_u32_from_f32_warp3.12s,pixel_aot_pack_b32_warp1.11s,pixel_aot_align_warp2.72s,pixel_aot_bfm_warp1.13s,pixel_aot_plain_bitscan_warp1.76s,pixel_aot_swaprel_warp1.37s,pixel_aot_first_bit_warp1.85s,pixel_aot_sdwa_movrel_warp1.69s,pixel_aot_flat_scratch_warp1.43s,pixel_aot_uncompressed_integer_export_warp1.14s,pixel_aot_title_loads_warp2.27s,pixel_aot_attribute_warp1.44s,pixel_aot_smovrel_warp1.98s,pixel_aot_uncompressed_export_warp1.79s,pixel_aot_s_call_warp1.64s,pixel_aot_region_waits_warp1.65s,pixel_aot_sdwa_integer_warp2.33s,pixel_aot_region_scalar_alu_warp2.05s,pixel_aot_mad64_warp1.86s,pixel_aot_swap_warp1.70s,pixel_aot_sdwa_cmp_warp1.74s,pixel_aot_sdwa_unary_warp1.97s,pixel_aot_brev_warp1.74s,pixel_aot_carry_in_warp1.67s,pixel_aot_frexp_exp_warp1.68s,pixel_aot_carry_out_warp1.53s,pixel_aot_sad_warp1.68s,pixel_aot_e64_integer_warp1.36s,pixel_aot_attribute_sampled_warp1.06s,pixel_aot_compressed_export_warp1.55s,pixel_aot_sdwa_int_compare_warp2.02s,pixel_aot_ds_swizzle_warp1.13s,pixel_aot_integer_nc_warp1.54s,pixel_aot_smem_pointers_warp1.25s,pixel_aot_e64_approx_warp1.43s,pixel_aot_vop1_nops_warp1.32s,pixel_aot_sopp_round_mode_warp1.12s,pixel_aot_sample_clamp_controls0.98s,pixel_aot_sopk_hwreg_warp1.30s,pixel_aot_sample_clamp_compile6.86s,pixel_aot_hardware11.43s,pixel_aot_core_vector_hardware5.53s,pixel_aot_dpp_cvt_hardware2.41s,pixel_aot_dpp_movrel_hardware1.74s,pixel_aot_swaprel_hardware1.47s,pixel_aot_plain_movrel_hardware2.07s,pixel_aot_sdwa_movrel_hardware1.59s,pixel_aot_smovrel_hardware1.41s,pixel_aot_sdwa_f16_hardware2.47s,pixel_aot_dpp_f16_hardware4.72s,pixel_aot_sdwa_int_extra_hardware2.77s,pixel_aot_sdwa_cvt_hardware3.11s,pixel_aot_f16_exact_extra_hardware4.14s,pixel_aot_compressed_export_hardware0.74s,pixel_aot_dpp_extra_hardware1.91s,pixel_aot_uncompressed_export_hardware0.84s,pixel_aot_ds_swizzle_hardware0.70s,pixel_aot_uncompressed_integer_export_hardware0.91s,pixel_aot_scc_skip_hardware1.22s,pixel_aot_s_call_hardware0.84s,pixel_aot_exec_regions_hardware3.58s,pixel_aot_cmpx_regions_hardware5.68s,pixel_aot_cmpx_e64_hardware4.65s,pixel_aot_region_waits_hardware0.85s,pixel_aot_region_body_hardware1.61s,pixel_aot_region_scalar_alu_hardware0.85s,pixel_aot_region_scalar_load_hardware3.87s,pixel_aot_u32_from_f32_hardware2.17s,pixel_aot_buffer_color_hardware5.90s,pixel_aot_attribute_hardware0.90s,pixel_aot_attribute_sampled_hardware0.64s,pixel_aot_dmask_hardware1.45s,pixel_aot_sample_lod_hardware1.65s,pixel_aot_sample_offset_hardware2.00s,pixel_aot_sample_gradient_hardware2.63s,pixel_aot_sample_coarse_gradient_hardware6.34s,pixel_aot_three_way_hardware5.82s,pixel_aot_predicate_rounding_hardware3.67s,pixel_aot_sdwa_cmp_hardware0.79s,pixel_aot_comparisons_hardware4.97s,pixel_aot_sdwa_int_compare_hardware0.86s,pixel_aot_bfm_hardware0.66s,pixel_aot_get_lod_hardware1.31s,pixel_aot_brev_hardware0.77s,pixel_aot_smem_pointers_hardware0.65s,pixel_aot_cmp64_hardware1.92s,pixel_aot_cmp_f64_hardware2.72s,pixel_aot_pk_fmac_hardware0.96s,pixel_aot_shift64_hardware2.71s,pixel_aot_plain_bitscan_hardware1.00s,pixel_aot_int16_vop3_hardware1.11s,pixel_aot_int16_ternary_hardware1.74s,pixel_aot_f16_arith_hardware2.78s,pixel_aot_f16_round_hardware2.01s,pixel_aot_f16_fmac_ldexp_hardware1.74s,pixel_aot_f16_cvt_int16_hardware1.45s,pixel_aot_swap_hardware0.75s,pixel_aot_f16_to_int16_hardware1.03s,pixel_aot_cvt_float_int_e64_hardware1.16s,pixel_aot_flat_scratch_hardware0.94s,pixel_aot_sopk_hwreg_hardware0.57s,pixel_aot_cvt_flr_rpi_hardware2.96s,pixel_aot_sopp_round_mode_hardware0.59s,pixel_aot_e64_approx_hardware0.64s,pixel_aot_sdwa_unary_hardware0.93s,pixel_aot_mac_legacy_hardware0.85s,pixel_aot_integer_nc_hardware0.69s,pixel_aot_e64_hardware3.45s,pixel_aot_align_hardware1.11s,pixel_aot_title_loads_hardware1.51s,pixel_aot_e64_integer_hardware0.71s,pixel_aot_vop3_ternary_int_hardware1.21s,pixel_aot_sdwa_integer_hardware0.90s,pixel_aot_e64_spellings_hardware0.93s,pixel_aot_vop1_nops_hardware0.59s,pixel_aot_frexp_exp_hardware0.82s,pixel_aot_first_bit_hardware1.07s,pixel_aot_bitset64_hardware1.15s,pixel_aot_carry_out_hardware0.75s,pixel_aot_carry_in_hardware0.79s,pixel_aot_mad64_hardware0.84s,pixel_aot_cvt_f64_int_hardware2.14s,pixel_aot_cvt_f64_f32_hardware4.13s,pixel_aot_cvt_int_f64_hardware3.04s,pixel_aot_cvt_f32_f64_hardware1.19s,pixel_aot_sad_hardware0.81s,pixel_aot_pack_int16_hardware0.65s,pixel_aot_rndne_hardware1.29s,pixel_aot_pack_b32_hardware0.62s,pixel_aot_compare_grad_hardware2.47s,pixel_aot_compare_sample_hardware2.30s,pixel_aot_gather_hardware2.58s,pixel_aot_compare_gather_hardware2.50s,pixel_aot_sdwa_int_extra_warp1.37s,pixel_aot_f16_exact_extra_warp1.91s,pixel_aot_sdwa_cvt_warp1.65s,pixel_aot_compare_grad_warp2.50s,pixel_aot_div_fmas_hardware0.91s,pixel_aot_compare_hardware13.13s,pixel_aot_bits_hardware7.43s,pixel_aot_sample_clamp_hardware2.73s,pixel_aot_sample_clamp_warp2.71s)/O2(--preset release):cmake --build --preset release -- -j 2):0.00s(configure0.00s)ctest --preset release -R '^pixel_aot_' --parallel 2 --no-tests=error --output-on-failure): 202/202 passed (206.37s:pixel_aot_warp10.62s,pixel_aot_bits_warp11.41s,pixel_aot_three_way_warp5.21s,pixel_aot_core_vector_warp6.10s,pixel_aot_buffer_color_warp5.03s,pixel_aot_predicate_rounding_warp6.39s,pixel_aot_comparisons_warp4.35s,pixel_aot_blend_scalar_warp4.62s,pixel_aot_compare_warp9.18s,pixel_aot_blend_scalar_hardware4.67s,pixel_aot_cvt_f64_f32_warp3.87s,pixel_aot_sdwa_int_compare_warp0.83s,pixel_aot_cmpx_regions_warp4.41s,pixel_aot_e64_warp3.16s,pixel_aot_cvt_flr_rpi_warp2.78s,pixel_aot_cmpx_e64_warp3.52s,pixel_aot_f16_arith_warp2.70s,pixel_aot_exec_regions_warp2.89s,pixel_aot_cvt_int_f64_warp2.79s,pixel_aot_dpp_f16_warp2.94s,pixel_aot_cmp_f64_warp2.43s,pixel_aot_f16_round_warp1.97s,pixel_aot_shift64_warp2.29s,pixel_aot_gather_warp2.52s,pixel_aot_compare_gather_warp2.40s,pixel_aot_cvt_f64_int_warp1.95s,pixel_aot_f16_fmac_ldexp_warp1.67s,pixel_aot_compare_sample_warp2.24s,pixel_aot_dpp_extra_warp1.60s,pixel_aot_cmp64_warp1.67s,pixel_aot_int16_ternary_warp1.54s,pixel_aot_compare_lod_bias_hardware1.42s,pixel_aot_sample_gradient_warp2.20s,pixel_aot_compare_lod_level_hardware1.41s,pixel_aot_f16_cvt_int16_warp1.42s,pixel_aot_dpp_cvt_warp1.27s,pixel_aot_sample_coarse_gradient_warp2.25s,pixel_aot_region_body_warp1.24s,pixel_aot_compare_lod_level_warp1.40s,pixel_aot_sdwa_cmp_warp0.74s,pixel_aot_compare_lod_bias_warp1.43s,pixel_aot_cvt_float_int_e64_warp1.10s,pixel_aot_sample_offset_warp1.70s,pixel_aot_region_scalar_load_warp0.93s,pixel_aot_pk_fmac_warp0.92s,pixel_aot_scc_skip_warp1.02s,pixel_aot_cvt_f32_f64_warp1.12s,pixel_aot_f16_to_int16_warp1.02s,pixel_aot_bitset64_warp1.05s,pixel_aot_int16_vop3_warp1.03s,pixel_aot_vop3_ternary_int_warp1.08s,pixel_aot_plain_movrel_warp1.02s,pixel_aot_title_loads_warp1.39s,pixel_aot_align_warp1.02s,pixel_aot_get_lod_warp1.27s,pixel_aot_first_bit_warp1.01s,pixel_aot_plain_bitscan_warp0.92s,pixel_aot_sample_lod_warp1.42s,pixel_aot_rndne_warp1.22s,pixel_aot_mad64_warp0.79s,pixel_aot_div_fmas_warp0.87s,pixel_aot_flat_scratch_warp0.86s,pixel_aot_sdwa_integer_warp0.80s,pixel_aot_e64_spellings_warp0.88s,pixel_aot_dpp_movrel_warp0.82s,pixel_aot_sdwa_movrel_warp0.83s,pixel_aot_mac_legacy_warp0.79s,pixel_aot_dmask_warp1.27s,pixel_aot_uncompressed_export_warp0.72s,pixel_aot_smovrel_warp0.76s,pixel_aot_s_call_warp0.71s,pixel_aot_sdwa_unary_warp0.87s,pixel_aot_carry_in_warp0.75s,pixel_aot_region_scalar_alu_warp0.70s,pixel_aot_frexp_exp_warp0.78s,pixel_aot_swaprel_warp0.70s,pixel_aot_swap_warp0.72s,pixel_aot_region_waits_warp0.71s,pixel_aot_sad_warp0.73s,pixel_aot_uncompressed_integer_export_warp0.72s,pixel_aot_e64_integer_warp0.67s,pixel_aot_brev_warp0.72s,pixel_aot_bfm_warp0.66s,pixel_aot_carry_out_warp0.69s,pixel_aot_u32_from_f32_warp1.04s,pixel_aot_smem_pointers_warp0.65s,pixel_aot_pack_int16_warp0.63s,pixel_aot_integer_nc_warp0.64s,pixel_aot_compressed_export_warp0.64s,pixel_aot_e64_approx_warp0.63s,pixel_aot_ds_swizzle_warp0.60s,pixel_aot_pack_b32_warp0.60s,pixel_aot_sopk_hwreg_warp0.57s,pixel_aot_vop1_nops_warp0.58s,pixel_aot_sopp_round_mode_warp0.57s,pixel_aot_attribute_warp0.71s,pixel_aot_attribute_sampled_warp0.53s,pixel_aot_sample_clamp_controls0.55s,pixel_aot_sample_clamp_compile4.72s,pixel_aot_hardware6.89s,pixel_aot_core_vector_hardware2.86s,pixel_aot_dpp_movrel_hardware0.81s,pixel_aot_dpp_cvt_hardware1.29s,pixel_aot_swaprel_hardware0.68s,pixel_aot_plain_movrel_hardware1.03s,pixel_aot_sdwa_movrel_hardware0.85s,pixel_aot_smovrel_hardware0.77s,pixel_aot_sdwa_f16_hardware1.50s,pixel_aot_sdwa_int_extra_hardware1.29s,pixel_aot_dpp_f16_hardware2.92s,pixel_aot_sdwa_cvt_hardware1.48s,pixel_aot_f16_exact_extra_hardware1.71s,pixel_aot_compressed_export_hardware0.66s,pixel_aot_uncompressed_export_hardware0.72s,pixel_aot_dpp_extra_hardware1.64s,pixel_aot_uncompressed_integer_export_hardware0.73s,pixel_aot_ds_swizzle_hardware0.61s,pixel_aot_scc_skip_hardware1.02s,pixel_aot_s_call_hardware0.71s,pixel_aot_exec_regions_hardware2.91s,pixel_aot_cmpx_regions_hardware4.61s,pixel_aot_cmpx_e64_hardware3.80s,pixel_aot_region_waits_hardware0.80s,pixel_aot_region_body_hardware1.41s,pixel_aot_region_scalar_alu_hardware0.99s,pixel_aot_region_scalar_load_hardware1.33s,pixel_aot_u32_from_f32_hardware4.31s,pixel_aot_buffer_color_hardware5.38s,pixel_aot_attribute_hardware0.84s,pixel_aot_attribute_sampled_hardware0.58s,pixel_aot_dmask_hardware1.43s,pixel_aot_sample_lod_hardware1.65s,pixel_aot_sample_offset_hardware1.89s,pixel_aot_sample_gradient_hardware2.42s,pixel_aot_sample_coarse_gradient_hardware5.71s,pixel_aot_three_way_hardware5.39s,pixel_aot_predicate_rounding_hardware3.49s,pixel_aot_sdwa_cmp_hardware0.81s,pixel_aot_sdwa_int_compare_hardware0.88s,pixel_aot_comparisons_hardware4.75s,pixel_aot_bfm_hardware0.71s,pixel_aot_get_lod_hardware1.35s,pixel_aot_brev_hardware0.77s,pixel_aot_smem_pointers_hardware0.69s,pixel_aot_cmp64_hardware1.84s,pixel_aot_cmp_f64_hardware2.60s,pixel_aot_pk_fmac_hardware1.35s,pixel_aot_shift64_hardware2.89s,pixel_aot_plain_bitscan_hardware1.38s,pixel_aot_int16_vop3_hardware1.45s,pixel_aot_int16_ternary_hardware2.03s,pixel_aot_f16_arith_hardware3.35s,pixel_aot_f16_round_hardware2.36s,pixel_aot_f16_fmac_ldexp_hardware1.82s,pixel_aot_f16_cvt_int16_hardware1.46s,pixel_aot_swap_hardware0.75s,pixel_aot_f16_to_int16_hardware1.05s,pixel_aot_cvt_float_int_e64_hardware1.18s,pixel_aot_flat_scratch_hardware0.97s,pixel_aot_sopk_hwreg_hardware0.66s,pixel_aot_cvt_flr_rpi_hardware3.04s,pixel_aot_sopp_round_mode_hardware0.63s,pixel_aot_e64_approx_hardware0.68s,pixel_aot_sdwa_unary_hardware0.97s,pixel_aot_mac_legacy_hardware1.34s,pixel_aot_e64_hardware3.89s,pixel_aot_integer_nc_hardware0.84s,pixel_aot_align_hardware1.31s,pixel_aot_title_loads_hardware1.77s,pixel_aot_e64_integer_hardware0.75s,pixel_aot_vop3_ternary_int_hardware1.21s,pixel_aot_sdwa_integer_hardware0.91s,pixel_aot_e64_spellings_hardware1.00s,pixel_aot_vop1_nops_hardware0.65s,pixel_aot_frexp_exp_hardware0.93s,pixel_aot_first_bit_hardware1.14s,pixel_aot_bitset64_hardware1.19s,pixel_aot_carry_out_hardware0.79s,pixel_aot_carry_in_hardware0.80s,pixel_aot_mad64_hardware0.86s,pixel_aot_cvt_f64_int_hardware2.15s,pixel_aot_cvt_f64_f32_hardware4.22s,pixel_aot_cvt_int_f64_hardware3.07s,pixel_aot_cvt_f32_f64_hardware1.22s,pixel_aot_sad_hardware0.79s,pixel_aot_pack_int16_hardware0.67s,pixel_aot_rndne_hardware1.31s,pixel_aot_pack_b32_hardware0.65s,pixel_aot_compare_grad_hardware3.10s,pixel_aot_compare_sample_hardware2.97s,pixel_aot_compare_gather_hardware3.35s,pixel_aot_gather_hardware3.62s,pixel_aot_sdwa_f16_warp2.17s,pixel_aot_sdwa_int_extra_warp1.90s,pixel_aot_f16_exact_extra_warp2.57s,pixel_aot_sdwa_cvt_warp2.07s,pixel_aot_compare_grad_warp3.36s,pixel_aot_compare_hardware13.30s,pixel_aot_div_fmas_hardware1.22s,pixel_aot_bits_hardware8.74s,pixel_aot_sample_clamp_hardware3.28s,pixel_aot_sample_clamp_warp2.81s)tests/pixel_aot_check.pyok (14.7s)sccache: 29/45 hits; wall531.5stested:
8ef66710via fetch (pull/2850/head, no patch)AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by ColorMeBoom on 2026-11-26T14:07:54Z.
RX 5700 XT result for the hardware run requested above. The fix holds on the adapter from #2731.
Environment:
dev.1002:731f), driver 32.0.21045.29003.mainat5a41adba(contains1940788d)tools/pixel_aot.pyandtests/pixel_aot_check.pyreverted to1940788d~1The before-fix run reads back on the hardware, with channel 1 the only one that differs (channels 0, 2 and 3 match on every row):
0000fffc0000000500000005000000040000ffff00000000With the fix, all three rows pass on the card, and every co_ci mutation is still caught on at least one row. On @tedin7's question about
subrev: in this fixture the unmutatedv_subrev_co_ci_u32_sdwarow passes on the RX 5700 XT both before and after the change, so this draw shows no sign thatsubrevneeds the same treatment. One difference from WARP: with the fix, thesub→subrevmutation also mismatches on row 3 on the card (['mismatch', 'mismatch', 'mismatch']), while WARP passes that row. The mutation is caught either way.I reverted only for the before-fix run and restored both files afterward.
AI-assisted with Claude Code (Claude Opus 5.5); the commands listed were run locally.