Recompiler: track sampler constants only up to image instructions #1573
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1573
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1573"
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?
@philip-roy-jones on GitHub · 2026-11-24 17:50 UTC · original
philip-roy-jones:recompiler-sampler-blocks-1269→main· +43 −9 · 2 files · 1 commits · openPart of #1269. XCL can skip tracking scalar writes in blocks that never read a static sampler descriptor. A descriptor depends only on the writes that precede its image instruction in the same block.
What is in it
Apply pending writes when an image instruction reads the descriptor and discard them at block boundaries. Both the HLSL and direct-DXIL backends use the same helper. The regression test covers consecutive image reads, an unknown overwrite and a branch target.
Tested
33fe8632a35bon08db8020d323, which includes #2420. Windows 11 Pro 26200.9974, Ryzen 7 7700X, Radeon RX 580 driver 31.0.21925.1001, Rust 1.100.0 MSVC and DXC 1.9.2609.5.cargo build --workspace --locked,cargo test --workspace --locked --no-runandcargo build --release --locked -p xclpassed on both.xcl-gpu run,cargo test --locked -p xcl --lib -- static_samplers static_sampler_word_from_s_brev --test-threads=1 --nocapturepassed on HLSL and direct DXIL withXCL_REQUIRE_GPU=wave64. Each backend passed 3 cases on main and 4 on the PR, with zero skips. The two image-load/store cases passed on both. The repaired DXIL barrier assertion passed on both before its wave32 GPU dispatch skipped.xcl-gpu run cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputreturned 101 on both. 37 harnesses ran on each. After rerunning any unreported cases by exact name, main had 1,383 passed, 43 failed, 47 ignored and 3 process crashes (0xc0000005) and the PR had 1,368 passed, 61 failed, 47 ignored and 1 process crash (0xc0000005). 67 distinct tests printedSKIPPEDon main and 67 on the PR. The skip paths do not establish GPU coverage. All 16 cases that failed only on the PR in those suite runs reported a suspended GPU device (0x887A0005) and passed individually on both revisions. All 62 outcomes matched in individual processes on both revisions (24 passed, 35 failed, 3 returnedprocess exit 0xc0000005).RX 580 skips and isolated failures on `
08db8020d3` and `33fe8632a3`pso_measurement_compiles_an_exact_synthetic_record.gpu_geometry_direct_records.a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_branch_on_a_mixed_mask_matches_the_hlsl_path_on_the_gpu,a_bridged_instruction_may_write_to_the_entry_block,a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier,a_bridged_v_cmpx_keeps_the_lanes_outside_exec_out,a_compute_program_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,a_per_lane_compute_program_runs_on_the_gpu,a_per_lane_program_with_four_memory_windows_runs_on_the_gpu,coalesced_foreign_runs_agree_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,const_and_null_mask_operands_agree_with_hlsl_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,f16_programs_on_the_gpu,f32_programs_on_the_gpu,f64_programs_on_the_gpu,gpu_frexp_exp_f32_denorm_per_lane,integer_programs_on_the_gpu,mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu,native_wave_branches_on_the_gpu,per_lane_kernels_run_on_the_gpu,split_wave64_dead_scc_skips_exchange_barrier,split_wave64_wave_branches_on_the_gpu,the_lowering_agrees_with_the_hlsl_path_on_the_gpu,the_runtime_path_takes_the_split_form,the_split_form_agrees_with_the_wave64_lowering_on_the_gpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.heap_window_out_of_memory_falls_back_to_the_switch_form.emitted_ms_primitive_attribute_reaches_the_pixel_shader,emitted_ms_ps_draw_a_triangle,gpu_geometry_mode_es_gs_strip,gpu_geometry_mode_es_gs_strip_with_branches,gpu_mesh_mode_two_passes,passthrough_mesh_stream_accepts_a_triangle_driver_blob.approximate_float_unary_ops_are_within_tolerance,bfrev_i64_of_a_uniform_product_matches_cpu,derivatives_in_compute_run,dot4_add_u8_packed_matches_cpu,doubles_match_cpu,exact_float_unary_ops_match_cpu,float_binary_tertiary_and_half_conversions_match_cpu,gpu_direct_rcp_f64_and_rsq_f64_edges,gpu_direct_v_cmp_class_f32_const_mask_validates_and_matches_isa,gpu_direct_wave32_saveexec_and_wrexec,groupshared_barrier_and_atomics_run,half_precision_overloads_run,i1_to_i64_sign_extension_and_shift_match_cpu,int64_bit_ops_match_cpu,integer_ops_match_cpu,raw_and_structured_buffer_atomics_run,s_setreg_b32_mode_bit3_does_not_underflow,texture_ops_run,typed_buffer_ops_run,uaddc_and_usubb_match_cpu,uav_array_3d_stores_loads_and_texture_atomics_run,wave_ops_match_cpu.blocks_are_written_in_reverse_post_order.dispatch_chain_divergent_forward_edges_3d,dispatch_chain_oversized_loop_matches_whole,dispatch_chain_payload_skips_middle_piece,dispatch_chain_payload_survives_reused_edge_slot,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange,offline_split_compute_pipeline_is_reused_by_a_second_process.placed_title_textures_share_vram_and_preserve_pixels.These assertions or execution failures reproduced individually on both revisions.
console_compute_without_an_exec_write_has_the_wave_size_of_its_header,gpu_cmp_class_f16_preserves_snan,gpu_compute_coherent_and_cached_loads,gpu_compute_tg_size_counts_a_partial_last_wave,gpu_direct_image_get_resinfo_d16,gpu_direct_msaa_image_loads,gpu_dot2_f32_f16_abs_neg_on_src2,gpu_ds_swizzle_and_bpermute_zero_inactive_lanes,gpu_f16_defaults_to_round_to_nearest_even,gpu_f32_compares_with_nan,gpu_f64_compares_with_nan,gpu_f64_literal_high_word,gpu_f64_math_random,gpu_f64_roots,gpu_f64_rounding_and_conversions,gpu_float_compares_random,gpu_frexp_exp_f32_denorm_control_flow,gpu_frexp_exp_f32_denorm_initial_mode,gpu_frexp_exp_f32_denorm_modes,gpu_frexp_exp_f32_denorm_setreg,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_image_get_resinfo_dim_2d_of_an_msaa_tsharp,gpu_image_get_resinfo_past_last_level,gpu_images_sample_load_store_atomic,gpu_ldexp_f32,gpu_ldexp_f64,gpu_mad_nf_f16_rounds_intermediate_in_binary16,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_qsad_and_mqsad,gpu_s_round_mode_controls_f16_rounding_across_modes,gpu_safe_s_barrier_multi_warp_and_early_endpgm,gpu_sdwa_f16_inline_constants,gpu_signed_bfe_arithmetic_shift,gpu_v_dot8_u32_u4_edge_cases,gpu_wave32_and_wave64_src_vccz_execz.Main process exits.
gpu_direct_ps_masks_hold_helper_lanes_on_triangle_edges,gpu_ps_masks_hold_helper_lanes_on_triangle_edges,gpu_wave64_ps_whole_wave_reductions.PR process exits.
gpu_direct_ps_masks_hold_helper_lanes_on_triangle_edges,gpu_ps_masks_hold_helper_lanes_on_triangle_edges,gpu_wave64_ps_whole_wave_reductions.Previous verification on `a971a8ab36ec` against `
50a9fdef81`a971a8ab36econ50a9fdef81cb. Windows 11 Pro 26200.9974, Ryzen 7 7700X, Radeon RX 580 (31.0.21925.1001), Rust 1.100.0 MSVC, DXC 1.9.2609.5.cargo build --workspace --lockedandcargo build --release --locked -p xclpassed on both revisions.XCL_REQUIRE_GPU=wave64,cargo test --locked -p xcl --lib -- static_samplers --test-threads=1 --nocapturepassed on HLSL and withXCL_DIRECT_DXIL=1. Each run passed 1 test on main and 2 on the PR, with zero failures, ignores or skips. Both upstream image-load/store tests at the conflict also passed on the PR.cargo test --locked --workspace --no-fail-fast -- --test-threads=4on the RX 580 returned 101 on both. Main reported 1,170 passed, 119 failed, 46 ignored and the PR 1,172 passed, 118 failed, 46 ignored. Both pass counts include the same 76 tests that printedSKIPPED. Each GPU command ran through Philip’s shared queue.gpu_wave64_ps_whole_wave_reductionsexited0xc0000005on both. The full-suite log includes0x887A0005(device removed) in subsequent tests.a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier. Both runs counted 3 barriers with 1 expected. Main CI · PR CICurrent RX 580 skips and isolated failures
a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_branch_on_a_mixed_mask_matches_the_hlsl_path_on_the_gpu,a_bridged_instruction_may_write_to_the_entry_block,a_bridged_v_cmpx_keeps_the_lanes_outside_exec_out,a_compute_program_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,a_per_lane_compute_program_runs_on_the_gpu,a_per_lane_program_with_four_memory_windows_runs_on_the_gpu,coalesced_foreign_runs_agree_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,const_and_null_mask_operands_agree_with_hlsl_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,f16_programs_on_the_gpu,f32_programs_on_the_gpu,f64_programs_on_the_gpu,gpu_frexp_exp_f32_denorm_per_lane,integer_programs_on_the_gpu,mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu,native_wave_branches_on_the_gpu,per_lane_kernels_run_on_the_gpu,split_wave64_dead_scc_skips_exchange_barrier,split_wave64_wave_branches_on_the_gpu,the_lowering_agrees_with_the_hlsl_path_on_the_gpu,the_runtime_path_takes_the_split_form,the_split_form_agrees_with_the_wave64_lowering_on_the_gpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.approximate_float_unary_ops_are_within_tolerance,derivatives_in_compute_run,doubles_match_cpu,exact_float_unary_ops_match_cpu,float_binary_tertiary_and_half_conversions_match_cpu,gpu_direct_rcp_f64_and_rsq_f64_edges,groupshared_barrier_and_atomics_run,half_precision_overloads_run,int64_bit_ops_match_cpu,integer_ops_match_cpu,raw_and_structured_buffer_atomics_run,s_setreg_b32_mode_bit3_does_not_underflow,texture_ops_run,typed_buffer_ops_run,uaddc_and_usubb_match_cpu,uav_array_3d_stores_loads_and_texture_atomics_run,wave_ops_match_cpu.a_held_resource_goes_when_the_queue_is_past_its_batch,a_new_list_takes_no_copy_scratch_of_an_earlier_one,a_recording_outlives_the_reset_of_the_titles_allocator,a_reset_while_the_last_submit_runs_records_on_another_pc_list,a_resubmit_while_the_previous_submit_runs_is_noticed,an_internal_wait_is_listed_until_its_fence_reaches_the_value,copy_scratch_budget_counts_resources_until_gpu_completion,execute_indirect_reads_the_arguments_written_before_it,gpu_console_textures_upload_every_mip_and_slice,gpu_depth_buffer_created_for_unordered_access_is_placed,gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels,gpu_placed_console_depth_target_with_clear_value,gpu_raw_window_view_reaches_its_top,gpu_upload_batches_reuse_the_queues_upload_buffer,rejected_create_shader_cache_session_falls_back_to_working_in_memory_session,the_shaders_t_sharp_index_bound_fits_the_shared_heap.dispatch_chain_divergent_forward_edges_3d,dispatch_chain_oversized_loop_matches_whole,dispatch_chain_payload_skips_middle_piece,dispatch_chain_payload_survives_reused_edge_slot,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange.emitted_ms_primitive_attribute_reaches_the_pixel_shader,emitted_ms_ps_draw_a_triangle,gpu_geometry_mode_es_gs_strip,gpu_geometry_mode_es_gs_strip_with_branches,gpu_mesh_mode_two_passes.0x887A0020(2) —pso_measurement_compiles_an_exact_synthetic_record,stale_blob_cannot_bypass_the_offline_pipeline_cap.gpu_geometry_direct_records.heap_window_out_of_memory_falls_back_to_the_switch_form.blocks_are_written_in_reverse_post_order.test_title_draws_with_a_root_signature_under_the_debug_layer.The 32 assertion or execution failures reproduced individually on both revisions were
a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier,gpu_cmp_class_f16_preserves_snan,gpu_compute_coherent_and_cached_loads,gpu_compute_tg_size_counts_a_partial_last_wave,gpu_direct_image_get_resinfo_d16,gpu_direct_msaa_image_loads,gpu_ds_swizzle_and_bpermute_zero_inactive_lanes,gpu_f16_defaults_to_round_to_nearest_even,gpu_f32_compares_with_nan,gpu_f64_compares_with_nan,gpu_f64_literal_high_word,gpu_f64_math_random,gpu_f64_roots,gpu_f64_rounding_and_conversions,gpu_float_compares_random,gpu_frexp_exp_f32_denorm_control_flow,gpu_frexp_exp_f32_denorm_initial_mode,gpu_frexp_exp_f32_denorm_modes,gpu_frexp_exp_f32_denorm_setreg,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_image_get_resinfo_dim_2d_of_an_msaa_tsharp,gpu_image_get_resinfo_past_last_level,gpu_images_sample_load_store_atomic,gpu_ldexp_f32,gpu_ldexp_f64,gpu_mad_nf_f16_rounds_intermediate_in_binary16,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_s_round_mode_controls_f16_rounding_across_modes,gpu_safe_s_barrier_multi_warp_and_early_endpgm,gpu_sdwa_f16_inline_constants,gpu_signed_bfe_arithmetic_shift,gpu_wave32_and_wave64_src_vccz_execz.Historical verification and performance measurements on `fcc8247` and earlier revisions
fcc8247a9455is a single commit on upstreamc160d86ef2ef. It and the independently tested54d5cd78da13have the same complete Git tree,72ad1a0bf8a6. Windows 11 Pro 26200.9974, Ryzen 7 7700X, Radeon RX 580 (31.0.21925.1001), Rust 1.100.0 MSVC, DXC 1.9.2609.5.cargo build --release -p xclon both. Median CPU time to translate 54 retail shaders to HLSL fell from 86.30 ms to 82.76 ms (4.1%) per batch. Each build ran 36 timed batches in alternating groups after warmup, on 18 vertex, 18 pixel and 18 compute programs with four memory windows. All 7,571,624 HLSL bytes and all translation metadata matched, including 45 static descriptors across 26 programs.cargo test -p xcl --lib -- static_samplers --test-threads=1 --nocapturepassed with the default backend and again with--locked,XCL_DIRECT_DXIL=1andXCL_REQUIRE_GPU=wave64. Both modes also passed with--lockedon GitHub's mergeacee405with upstream9039900and on a clean local merge with upstream85e3826(tree5fd5a66b687d, including #1524). Each run reported 2 passed, 0 failed, 0 ignored and 0 skipped, including point/linear sampling on the RX 580.cargo build --workspacesucceeded on both.cargo test --workspace --no-fail-fast -- --test-threads=4lost the library process on both. Rerunning every unreported case by name gave 836 reported passes on main and 837 on the PR. Each had the same 21 failed tests, 1 test-process crash and 42 ignored. Both pass counts include 21 explicit hardware skips..\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedpassed locally on WARP with Windows SDK DXC 1.8.2502.11. It reported 858 passes (including 236 hardware skips), 0 failures, 42 ignored and 1 filtered. At that revision the hosted Windows run awaited maintainer approval. Hosted Windows CIfcc8247on the Ryzen 7 9800X3D iGPU and RTX 5090. The workspace reported 859 passes, 0 failures and 42 ignored on each adapter, including one skip on AMD and three on NVIDIA. On the same merge tree asacee405, both GPUs passed a sampler probe through both compilers and the direct-DXIL recompiler suite (195 passed, 0 failed, 18 ignored). Independent AMD and NVIDIA reportbe200abon an RTX 4090 and reported 777 passed, 0 failed, 41 ignored. Earlier RTX 4090 reportRX 580 failures and hardware skips on both revisions
Both builds failed the same tests,
gpu_cmp_class_f16_preserves_snan,gpu_compute_tg_size_counts_a_partial_last_wave,gpu_ds_swizzle_and_bpermute_zero_inactive_lanes,gpu_f16_defaults_to_round_to_nearest_even,gpu_f32_compares_with_nan,gpu_f64_compares_with_nan,gpu_f64_literal_high_word,gpu_f64_math_random,gpu_f64_roots,gpu_f64_rounding_and_conversions,gpu_float_compares_random,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_ldexp_f32,gpu_ldexp_f64,gpu_mad_nf_f16_rounds_intermediate_in_binary16,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_s_round_mode_controls_f16_rounding_across_modes,gpu_safe_s_barrier_multi_warp_and_early_endpgm,gpu_sdwa_f16_inline_constants,gpu_signed_bfe_arithmetic_shift,gpu_wave32_and_wave64_src_vccz_execz.Process exit
0xc0000005ingpu_wave64_ps_whole_wave_reductions.heap_window_out_of_memory_falls_back_to_the_switch_form.emitted_ms_primitive_attribute_reaches_the_pixel_shader,emitted_ms_ps_draw_a_triangle,gpu_geometry_mode_es_gs_strip,gpu_mesh_mode_two_passes.approximate_float_unary_ops_are_within_tolerance,derivatives_in_compute_run,doubles_match_cpu,exact_float_unary_ops_match_cpu,float_binary_tertiary_and_half_conversions_match_cpu,groupshared_barrier_and_atomics_run,half_precision_overloads_run,int64_bit_ops_match_cpu,integer_ops_match_cpu,raw_and_structured_buffer_atomics_run,texture_ops_run,typed_buffer_ops_run,uaddc_and_usubb_match_cpu,uav_array_3d_stores_loads_and_texture_atomics_run,wave_ops_match_cpu.blocks_are_written_in_reverse_post_order.Regression run
All ten queued
scripts/smoke.ps1runs used the same retail title for 60 seconds on clean source-built release loaders, with networking off,XCL_ASYNC_PSO=0and fresh title data. Every run exited normally with zero crashes and device removals.Both cold pairs and the initial warm pair exceeded the 125% peak-commit limit. Both cold controls were still loading at the cutoff. After the initial warm pair, main and the PR had 932 and 970 translated entries in their respective namespaces, up from 783 in the common starting cache. The two expanded-cache pairs used byte-identical copies of the same 2,797-file seed, with 932 byte-verified translation pairs and 933 shared DXIL entries. Both orders met the frame and peak-memory limits. The blocks are from the final main-first pair.
Previous retail runs on `a971a8ab36ec` and `
50a9fdef81`scripts/smoke.ps1 -Game <local title> -Seconds 60 -Title Retail, offline release builds on the RX 580,XCL_ASYNC_PSO=0and fresh title data for every run. From empty caches, main showed 291 frames at 12,162 MB and the PR showed 399 frames at 12,206 MB. The two warm runs used byte-identical warm caches, with 896 pairs of matching translated shader payloads and 897 shared DXIL entries. All four runs exited normally with zero crashes and device removals. The warm runs showed 1,654 / 1,651 frames and used 13,836 / 13,841 MB (main / PR).Historical retail runs on `fcc8247` and its predecessors
After pushing
fcc8247, I ranscripts/smoke.ps1 -Game Retail -Seconds 60on both release builds withXCL_ASYNC_PSO=0and a fresh title data root for each run. All eight runs exited normally with zero crashes or device removals.The four warm runs started with byte-identical copies of the same 3,061-file cache. Each copy held both builds' original translated entries for 1,020 shared shader keys with matching DXIL and sampler payloads.
With empty caches and main first, the PR showed 79.2% of upstream's frames, below the 80% threshold. Reversing the order, the PR showed 86.0% of upstream's frames and met both thresholds. Both matched warm-cache pairs passed within six frames of main.
Earlier cache comparisons on the identical source tree
Previous head
54d5cd78da13and the same upstream parent. Each row is a 60-second main/PR comparison.The first warm pair exceeded the 25% peak-commit limit (+26.2%). Using upstream's cache alone also exceeded it. XCL keys its translated entries by compiler source, so the PR had to translate again with that upstream-only cache. For the last two pairs, I verified the cached DXIL and sampler payloads matched for 1,020 shared shader keys, kept the original entries under each build's own key, and gave all four runs byte-identical copies of the resulting cache.
Not tested
Translation time at
33fe8632a35b, asynchronous PSO creation, later gameplay and the barrier's wave32 GPU dispatch. The integrated adapter is disabled on this machine. OptionalXCL_SAMPLE_*fixtures were unset in the workspace suites. The earlier timing and independent GPU reports are recorded under their tested revisions.AI use
For the original series, OpenAI Codex used GPT-6.2 Astra (
gpt-6.2-astra) at maximum reasoning effort (max) to write the optimization and regression test, rebase the patch, run the tests and comparisons and prepare this report.OpenAI Codex in Orca, GPT-6.2 Astra (
gpt-6.2-astra) at maximum reasoning effort (max), resolved the rebase, reviewed the complete diff on Philip’s behalf, ran the revision-specific checks, and updated the evidence.For the rebase to
08db8020d323, OpenAI Codex in Orca, GPT-6.2 Astra (gpt-6.2-astra) at maximum reasoning effort (max), reviewed the full diff on Philip’s behalf, ran the checks and comparisons, and updated this evidence.@lows78 on GitHub · 2026-11-24 17:56 UTC · original
Test report for #1573 at
be200ab03d6b783e1e575ae693d225a0ba0f529a(clean tree; same file tree as the previous head11cd98c), on an RTX 4090, to add a full-suite run without failures next to the RX 580 one. I am not a graphics developer: Claude Code ran this on my PC, and I can rerun things if that helps.Tested
XCL_SAMPLE_*unset.cargo build --workspace && cargo test --workspace -- --test-threads=4, one run per commit:main9e3831e: 776 passed, 0 failed, 41 ignoredbe200ab: 777 passed, 0 failed, 41 ignored11cd98c: 777 passed, 0 failed, 41 ignoredgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)cargo test -p xcl --lib static_samplers -- --test-threads=4on11cd98c, 10 runs: 2 passed, 0 failed in eachconstant_samplersfrommainagainst this PR's, called on the same decoded instructions (temporary test on11cd98c, not part of the PR): 20,000 random sequences ofs_mov_b32/b64,s_movk_i32,s_add_u32,v_mov_b32andimage_sample_lzwith random block starts. 152,826 image instructions, 9,007 constant descriptors, all equal. With the PR'sknown.clear()removed, the same test fails.Not tested
smoke.ps1run) and retail shaders, release builds, AMD, Intel, native wave64AI use
@DavidM1911 on GitHub · 2026-11-24 19:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@nnonno91 on GitHub · 2026-11-24 19:10 UTC · original · edited 2026-11-24 19:51 UTC
Retest of
fcc8247a945560f0d288767260324d00204200d8on Windows54d5cd7below. On the clean new head,cargo build --workspace --lockedpassed andcargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputreported 859 passed, 0 failed, 42 ignored on each adapter. Both runs logged theheap_window_out_of_memory_falls_back_to_the_switch_formskip (heap windows off). The RTX 5090 also skippedgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no native wave64). These skips are included in Cargo's pass count.9039900ba3710fda9d791db589d548b1aaeb3cf8(includes #1693) with a temporary local merge of this PR into it (treeef008c6aba0e78b1f58fd40cf7b96cd609388e00). WithXCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1,cargo test --locked -p xcl --lib gpu::recomp -- --test-threads=4 --show-outputreported 194 passed, 0 failed, 18 ignored on main and 195 passed, 0 failed, 18 ignored with the PR on each GPU. The two RTX 5090 wave64 skips were the same on both trees. AMD logged no skips in this filter. The heap-window read/write and no-alias tests passed on both trees.Independent AMD check of both compiler paths at
54d5cd78da132668ee8a3be7ff239c83380b7f66(rebased onc160d86ef2efe3a07e4dfb473e4fa72eafb413c0).Tested
XCL_ADAPTER='AMD Radeon'. Unoptimized Rust builds, with debug info disabled on the PR.cargo build --workspace --lockedpassed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputreported 859 passed, 0 failed, 42 ignored. One explicit hardware skip is included in the pass count (heap_window_out_of_memory_falls_back_to_the_switch_form, heap windows off). The bundled title passed.XCL_REQUIRE_GPU=wave64,mesh,cargo test --locked -p xcl --lib -- static_samplers --test-threads=1 --nocapturegave 2 passed, 0 failed, 0 ignored, 0 skips.cargo test --locked -p xcl --test sampler_reuse_probe -- --exact reused_sampler_registers_match_across_compilers --test-threads=1 --nocaptureran the same temporary fixture at the base and PR (one pass each, no skips). A block with no image wrote to the sampler registers. The next block initialized them and reused those registers for three reads with point, linear, then point filtering. Both the HLSL and direct kernel translators produced exactly the expected two static sampler descriptors. Each generated kernel ran on the GPU in wave32 and native wave64. All four RGBA components per sample matched the expected bits for every lane, including red values2.0 / 1.5 / 2.0.Not tested
Retail shader packs or titles, performance, or direct runtime routing through a title PSO.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary probe, ran the tests, and drafted this report.
@Pipodi on GitHub · 2026-11-24 22:55 UTC · original
Test report for
fcc8247: one title run of the retail title, againstmainon the same machine. This PR does not change where the title stops presenting in its intro, at least on this card and in this setup.Setup
main689f2dbagainst689f2db+ this PR (local merge, no conflicts).XCL_DXIL_CACHE, A pressed at 16 s and then every 15 s,XCL_NETWORK=0, default settings otherwise.main689f2dbfcc8247Both runs stop presenting at the same point and stay at 0 presents for the rest of the run. With one run each, this shows no change in the stop; it says nothing about the time this PR saves per translation.
Not tested: a warm cache, repeat runs, other GPUs.
AI use: Claude Code. Claude Sonnet 5.5 (a second session) made the two runs; Claude Opus 5.5 checked the counts against the run logs and wrote this report.
@DavidM1911 on GitHub · 2026-11-26 05:48 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.