startup: lower CLAMP_BORDER comparison samplers with fixed border colors #2549

Manually merged
github merged 2 commits from gh-pr/2549/head into gh-pr/2549/base 2026-11-27 01:01:17 +00:00
Owner

@⁠consolelogkyo on GitHub · 2026-11-25 20:29 UTC · original
consolelogkyo:feat/startup-cmp-sampler-border → main · +562 −14 · 7 files · 2 commits · merged 2026-11-25 20:50 UTC

Part of #2023 (item F slice).

Summary

  • tools/pixel_aot.py & tools/startup/gfx2hlsl.py: Adds allow_border=True to comparison_sampler_state for Stage.image_compare (image_sample_c and image_sample_c_lz), accepting SQ_TEX_CLAMP_BORDER (6) alongside SQ_TEX_CLAMP_LAST_TEXEL (2) independently in CLAMP_X and CLAMP_Y (SQ_IMG_SAMP_WORD0 bits 2:0 and 5:3). When either axis uses CLAMP_BORDER, SQ_IMG_SAMP_WORD3 bits 31:30 (BORDER_COLOR_TYPE, Mesa src/amd/registers/gfx10-rsrc.json) must be TRANS_BLACK (0), OPAQUE_BLACK (1), or OPAQUE_WHITE (2); REGISTER (3, indexed via BORDER_COLOR_PTR) is refused because D3D12_STATIC_SAMPLER_DESC has no register-indexed border color. When neither axis uses CLAMP_BORDER, BORDER_COLOR_TYPE and BORDER_COLOR_PTR remain ignored. Half-border, mirror-once-border, wrap/mirror modes, and the standalone pixel_aot.comparison_sampler_state default (allow_border=False) stay refused.
  • Inline float constants in const_words(): s_mov_b32 sN, 0x40000000 (OPAQUE_BLACK with BORDER_COLOR_PTR == 0) assembles as inline float constant 244 (2.0); Stage now tracks the 32-bit pattern for const_words() (cleared on overwrites and branch joins) without changing self.sym or runtime SGPR assignments.
  • src/startup_stubs/translated_sampler_bindings.h: Maps SQ_IMG_SAMP_WORD3 bits 31:30 (0..2) to D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK, D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK, and D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE in decode_sampler() (falling back to TRANSPARENT_BLACK for 3) and carries the matching {rgb, rgb, rgb, alpha} floats into dynamic_sampler().
  • Tests:
    • tests/startup_image_sample_c_border_check.py (startup_image_sample_c_border_controls, _warp, _hardware): 21 source-built gfx1013 pixel fixtures covering translation/manifest/refusal controls (REGISTER border on X, Y, or XY, half-border, mirror-once-border, wrap/mirror, reserved word 3 bits, and standalone pixel_aot isolation), inline-float 0x40000000 (2.0) constant sampler words, and D3D12 draws with DXC ps_6_0 and FXC ps_5_1 across in-bounds, -X/+X/+Y out-of-bounds, mixed (6, 2) and (2, 6) X/Y addressing, bilinear 50/50 and 75/25 border-edge PCF, RGBA border readback separating OPAQUE_BLACK (0,0,0,1) from TRANS_BLACK (0,0,0,0) and OPAQUE_WHITE (1,1,1,1), and four negative-control mutations (including the pre-fix TRANSPARENT_BLACK-only border behavior).
    • Extended tests/startup_sampler_comparison_check.cpp and tests/startup_translated_sampler_bindings_check.cpp with static and dynamic border-color assertions.

Verification

Executed locally on Windows 11 (Release build, Microsoft Basic Render Driver / WARP and AMD Radeon RX 9070 XT, with both DXC ps_6_0 and FXC ps_5_1):

  • ctest --test-dir out/build/release --output-on-failure -R "^(startup_image_sample_c_border_controls|startup_image_sample_c_border_warp|startup_image_sample_c_border_hardware|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_translated_sampler_bindings_shared_axis_control|startup_gfx2hlsl_sample_c_lz_mip|startup_translator)$": 10/10 passed
  • ctest --test-dir out/build/release -j 8 --output-on-failure -R "^startup_gfx2hlsl_" -E "^startup_gfx2hlsl_.*_(warp|hardware)$": 70/70 passed
  • out/pe-env/Scripts/python.exe -B tests/pixel_compare_check.py and tests/pixel_aot_check.py: passed

AI-assisted.

**@⁠consolelogkyo** on GitHub · 2026-11-25 20:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2549) `consolelogkyo:feat/startup-cmp-sampler-border` → `main` · +562 −14 · 7 files · 2 commits · merged 2026-11-25 20:50 UTC Part of #2023 (item F slice). ### Summary - **`tools/pixel_aot.py` & `tools/startup/gfx2hlsl.py`**: Adds `allow_border=True` to `comparison_sampler_state` for `Stage.image_compare` (`image_sample_c` and `image_sample_c_lz`), accepting `SQ_TEX_CLAMP_BORDER` (`6`) alongside `SQ_TEX_CLAMP_LAST_TEXEL` (`2`) independently in `CLAMP_X` and `CLAMP_Y` (`SQ_IMG_SAMP_WORD0` bits `2:0` and `5:3`). When either axis uses `CLAMP_BORDER`, `SQ_IMG_SAMP_WORD3` bits `31:30` (`BORDER_COLOR_TYPE`, Mesa `src/amd/registers/gfx10-rsrc.json`) must be `TRANS_BLACK` (`0`), `OPAQUE_BLACK` (`1`), or `OPAQUE_WHITE` (`2`); `REGISTER` (`3`, indexed via `BORDER_COLOR_PTR`) is refused because `D3D12_STATIC_SAMPLER_DESC` has no register-indexed border color. When neither axis uses `CLAMP_BORDER`, `BORDER_COLOR_TYPE` and `BORDER_COLOR_PTR` remain ignored. Half-border, mirror-once-border, wrap/mirror modes, and the standalone `pixel_aot.comparison_sampler_state` default (`allow_border=False`) stay refused. - **Inline float constants in `const_words()`**: `s_mov_b32 sN, 0x40000000` (`OPAQUE_BLACK` with `BORDER_COLOR_PTR == 0`) assembles as inline float constant `244` (`2.0`); `Stage` now tracks the 32-bit pattern for `const_words()` (cleared on overwrites and branch joins) without changing `self.sym` or runtime SGPR assignments. - **`src/startup_stubs/translated_sampler_bindings.h`**: Maps `SQ_IMG_SAMP_WORD3` bits `31:30` (`0..2`) to `D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK`, `D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK`, and `D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE` in `decode_sampler()` (falling back to `TRANSPARENT_BLACK` for `3`) and carries the matching `{rgb, rgb, rgb, alpha}` floats into `dynamic_sampler()`. - **Tests**: - `tests/startup_image_sample_c_border_check.py` (`startup_image_sample_c_border_controls`, `_warp`, `_hardware`): 21 source-built gfx1013 pixel fixtures covering translation/manifest/refusal controls (`REGISTER` border on X, Y, or XY, half-border, mirror-once-border, wrap/mirror, reserved word 3 bits, and standalone `pixel_aot` isolation), inline-float `0x40000000` (`2.0`) constant sampler words, and D3D12 draws with DXC `ps_6_0` and FXC `ps_5_1` across in-bounds, `-X`/`+X`/`+Y` out-of-bounds, mixed `(6, 2)` and `(2, 6)` X/Y addressing, bilinear 50/50 and 75/25 border-edge PCF, RGBA border readback separating `OPAQUE_BLACK` `(0,0,0,1)` from `TRANS_BLACK` `(0,0,0,0)` and `OPAQUE_WHITE` `(1,1,1,1)`, and four negative-control mutations (including the pre-fix `TRANSPARENT_BLACK`-only border behavior). - Extended `tests/startup_sampler_comparison_check.cpp` and `tests/startup_translated_sampler_bindings_check.cpp` with static and dynamic border-color assertions. ### Verification Executed locally on Windows 11 (`Release` build, Microsoft Basic Render Driver / WARP and AMD Radeon RX 9070 XT, with both DXC `ps_6_0` and FXC `ps_5_1`): - `ctest --test-dir out/build/release --output-on-failure -R "^(startup_image_sample_c_border_controls|startup_image_sample_c_border_warp|startup_image_sample_c_border_hardware|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_translated_sampler_bindings_shared_axis_control|startup_gfx2hlsl_sample_c_lz_mip|startup_translator)$"`: **10/10 passed** - `ctest --test-dir out/build/release -j 8 --output-on-failure -R "^startup_gfx2hlsl_" -E "^startup_gfx2hlsl_.*_(warp|hardware)$"`: **70/70 passed** - `out/pe-env/Scripts/python.exe -B tests/pixel_compare_check.py` and `tests/pixel_aot_check.py`: **passed** AI-assisted.
Allow `SQ_TEX_CLAMP_BORDER` (6) alongside `SQ_TEX_CLAMP_LAST_TEXEL` (2)
on X and Y for `image_sample_c` and `image_sample_c_lz` in
`tools/startup/gfx2hlsl.py`, and decode `SQ_IMG_SAMP_WORD3` bits 31:30
(`BORDER_COLOR_TYPE`, Mesa `gfx10-rsrc.json`) to the three static D3D12
border colors (`TRANS_BLACK`, `OPAQUE_BLACK`, `OPAQUE_WHITE`) in
`src/startup_stubs/translated_sampler_bindings.h` (as well as dynamic
heap sampler border colors). Also record 32-bit inline float constants
written by `s_mov_b32` (such as `0x40000000` / `2.0` for `OPAQUE_BLACK`)
for `const_words()` without altering runtime SGPR materialization.

`BORDER_COLOR_TYPE == REGISTER` (3) when X or Y uses `CLAMP_BORDER`,
half-border / mirror-once-border / wrap / mirror modes, and the
standalone `pixel_aot.comparison_sampler_state` default remain refused.

Part of #2023

AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:01:16 +00:00
github manually merged commit 34b74000af into gh-pr/2549/base 2026-11-27 01:01:17 +00:00
Author
Owner

@⁠Makto94 on GitHub · 2026-11-25 20:47 UTC · original

Hardware run at head 34b74000 (build exit code 0).

Environment: NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2101 (NVIDIA 621.01) and Windows 11 Pro build 26300.9974 as reported by the system, dev preset (MSVC). The runs were serial (-j1).

Command: ctest --preset dev --no-tests=error -j1 -V -R '^startup_image_sample_c_border'

Result: 3/3 passed, 0 failed (_controls, _warp, _hardware). 0 capability skips (77).

startup_image_sample_c_border_hardware (test 755) prints 13 cases and 4 mutants for dxc, and the same for fxc: 26 cases and 8 mutants in total. Every mutant line says caught (dropped_w3_border_color, forced_clamp_last_texel, swapped_xy_addressing, opaque_black_as_trans_black). The 26 case lines and 8 mutant lines of the WARP run (test 754) are identical to those of test 755 (compared with diff).

The ctest output does not print the adapter. As a separate measurement, I ran the same script directly (python -B tests/startup_image_sample_c_border_check.py draw <dxc> <build>/offscreen_check.exe hardware <fxc>) under a small local wrapper that also printed the stdout of the first offscreen_check call the script makes. That stdout contains:

  • backend=hardware debug_layer=enabled
  • adapter=NVIDIA GeForce RTX 3070 Ti vendor=10de device=2482
  • driver=32.0.16.2101
  • debug_errors=0 debug_warnings=0

I have these debug-layer lines for the first invocation only, not for the other cases. The case and mutant lines of this direct run match test 755.

Not covered by this run: AMD, and any test outside the filter above.

**@⁠Makto94** on GitHub · 2026-11-25 20:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2549#issuecomment-7174200367) Hardware run at head `34b74000` (build exit code 0). Environment: NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2101 (NVIDIA 621.01) and Windows 11 Pro build 26300.9974 as reported by the system, `dev` preset (MSVC). The runs were serial (`-j1`). Command: `ctest --preset dev --no-tests=error -j1 -V -R '^startup_image_sample_c_border'` Result: 3/3 passed, 0 failed (`_controls`, `_warp`, `_hardware`). 0 capability skips (77). `startup_image_sample_c_border_hardware` (test 755) prints 13 cases and 4 mutants for `dxc`, and the same for `fxc`: 26 cases and 8 mutants in total. Every mutant line says `caught` (`dropped_w3_border_color`, `forced_clamp_last_texel`, `swapped_xy_addressing`, `opaque_black_as_trans_black`). The 26 case lines and 8 mutant lines of the WARP run (test 754) are identical to those of test 755 (compared with `diff`). The ctest output does not print the adapter. As a separate measurement, I ran the same script directly (`python -B tests/startup_image_sample_c_border_check.py draw <dxc> <build>/offscreen_check.exe hardware <fxc>`) under a small local wrapper that also printed the stdout of the first `offscreen_check` call the script makes. That stdout contains: - `backend=hardware debug_layer=enabled` - `adapter=NVIDIA GeForce RTX 3070 Ti vendor=10de device=2482` - `driver=32.0.16.2101` - `debug_errors=0 debug_warnings=0` I have these debug-layer lines for the first invocation only, not for the other cases. The case and mutant lines of this direct run match test 755. Not covered by this run: AMD, and any test outside the filter above.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 20:50 UTC · original · reviewed

Review of head 34b74000 (comment only, no approval). The PR's own change is identical to 016c68ad (range-diff: unchanged); only main was merged in.

Verdict: sound. The shader-side change has a real D3D12 draw test against a CPU reference. No other open or merged PR covers CLAMP_BORDER comparison samplers.

Checked

  • Read tools/pixel_aot.py (allow_border is opt-in, default stays strict), tools/startup/gfx2hlsl.py and src/startup_stubs/translated_sampler_bindings.h (static and dynamic border color, REGISTER type falls back and is refused upstream when a border axis is used).
  • python3 -B tests/startup_image_sample_c_border_check.py: controls ok.
  • Mutation: dropping the X/Y address-mode check in comparison_sampler_state makes the controls fail.
  • python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py: ok. git diff --check origin/main...HEAD: clean.
  • Win2025 WARP dev + release: receipt posted separately. startup_image_sample_c_border_controls/warp/hardware pass (draw readback vs CPU model, DXC and FXC).

Notes

  • The automatic Win2025 plan did not rebuild offscreen_check for this PR, so the first draw run used an older binary and failed on border_white. Passing offscreen_check in --targets fixed it (a pipeline plan gap, not a PR bug).
  • The PR is a translation feature and makes no game-startup claim, so I checked no executable behavior.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 20:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2549#pullrequestreview-6064805891) · **reviewed** Review of head 34b74000 (comment only, no approval). The PR's own change is identical to 016c68ad (range-diff: unchanged); only main was merged in. **Verdict:** sound. The shader-side change has a real D3D12 draw test against a CPU reference. No other open or merged PR covers CLAMP_BORDER comparison samplers. **Checked** - Read `tools/pixel_aot.py` (`allow_border` is opt-in, default stays strict), `tools/startup/gfx2hlsl.py` and `src/startup_stubs/translated_sampler_bindings.h` (static and dynamic border color, REGISTER type falls back and is refused upstream when a border axis is used). - `python3 -B tests/startup_image_sample_c_border_check.py`: controls ok. - Mutation: dropping the X/Y address-mode check in `comparison_sampler_state` makes the controls fail. - `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`: ok. `git diff --check origin/main...HEAD`: clean. - Win2025 WARP dev + release: receipt posted separately. `startup_image_sample_c_border_controls/warp/hardware` pass (draw readback vs CPU model, DXC and FXC). **Notes** - The automatic Win2025 plan did not rebuild `offscreen_check` for this PR, so the first draw run used an older binary and failed on `border_white`. Passing `offscreen_check` in `--targets` fixed it (a pipeline plan gap, not a PR bug). - The PR is a translation feature and makes no game-startup claim, so I checked no executable behavior. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 20:50 UTC · original

Win2025 WARP receipt for head 34b74000 after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 34b74000af157a0de922d680a46b89016cd3ac26:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target offscreen_check d3d12_xs_device_obj d3d12_xs_shim startup_sampler_comparison_check startup_translated_sampler_bindings_check -- -j 2): 6.26s (configure 2.15s)
    • Test (ctest --preset dev -R '^(startup_image_sample_c_border_(controls|warp)|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_gfx2hlsl_sample_c_lz_mip|startup_translator|startup_image_3d|startup_sampler_)' --parallel 4 --no-tests=error --output-on-failure): 25/25 passed (5.20s: startup_image_3d_hardware 1.73s, startup_image_3d_warp 1.75s, startup_sampler_heap_hardware 1.95s, startup_sampler_heap_warp 2.02s, startup_gfx2hlsl_sample_c_lz_mip 0.26s, startup_image_sample_c 0.35s, startup_sampler_heap_wrapped_warp 0.19s, startup_image_3d_controls 0.17s, startup_sampler_heap_controls 0.14s, startup_image_sample_c_border_controls 0.28s, startup_sampler_lod_dropped_warp 0.06s, startup_sampler_lod_warp 0.06s, startup_sampler_x_swapped_warp 0.06s, startup_translated_sampler_bindings 0.03s, startup_sampler_x_warp 0.08s, startup_translated_sampler_bindings_shared_axis_control 0.03s, startup_sampler_comparison 0.02s, startup_sampler_x_hardware 0.06s, startup_sampler_lod_hardware 0.06s, startup_sampler_x_swapped_hardware 0.09s, startup_sampler_lod_dropped_hardware 0.07s, startup_sampler_heap_wrapped_hardware 0.16s, startup_translator 0.64s, startup_image_sample_c_border_hardware 2.50s, startup_image_sample_c_border_warp 2.56s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target offscreen_check d3d12_xs_device_obj d3d12_xs_shim startup_sampler_comparison_check startup_translated_sampler_bindings_check -- -j 2): 9.55s (configure 2.13s)
    • Test (ctest --preset release -R '^(startup_image_sample_c_border_(controls|warp)|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_gfx2hlsl_sample_c_lz_mip|startup_translator|startup_image_3d|startup_sampler_)' --parallel 4 --no-tests=error --output-on-failure): 25/25 passed (4.44s: startup_image_3d_warp 1.61s, startup_image_3d_hardware 1.67s, startup_sampler_heap_hardware 1.72s, startup_sampler_heap_warp 1.80s, startup_sampler_heap_wrapped_warp 0.17s, startup_image_sample_c 0.28s, startup_image_3d_controls 0.13s, startup_sampler_x_warp 0.05s, startup_gfx2hlsl_sample_c_lz_mip 0.21s, startup_sampler_heap_controls 0.13s, startup_sampler_x_swapped_warp 0.05s, startup_sampler_lod_warp 0.06s, startup_translated_sampler_bindings 0.02s, startup_sampler_lod_dropped_warp 0.07s, startup_sampler_comparison 0.02s, startup_translated_sampler_bindings_shared_axis_control 0.02s, startup_sampler_x_hardware 0.05s, startup_sampler_lod_hardware 0.05s, startup_sampler_x_swapped_hardware 0.07s, startup_sampler_lod_dropped_hardware 0.05s, startup_sampler_heap_wrapped_hardware 0.15s, startup_translator 0.60s, startup_image_sample_c_border_controls 0.23s, startup_image_sample_c_border_warp 1.99s, startup_image_sample_c_border_hardware 1.99s)
  • Windows Python checks: tests/form_coverage_check.py ok (13.3s), tests/mesh_clip_cull_check.py ok (4.0s), tests/mesh_dynamic_geometry_check.py ok (0.2s), tests/mesh_heap_sampler_check.py ok (0.6s), tests/pso_readiness_check.py ok (0.7s), tests/rdna2_tools_check.py ok (2.3s), tests/startup_buffer_address_check.py ok (0.4s), tests/startup_buffer_format_word3_table_check.py ok (0.1s), tests/startup_compute_request_offline_check.py ok (0.5s), tests/startup_compute_translate_check.py ok (0.2s), tests/startup_flat_param_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.1s), tests/startup_gfx2hlsl_bit_alu_check.py ok (0.6s), tests/startup_gfx2hlsl_capture_check.py ok (0.9s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.2s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.3s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.1s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.1s), tests/startup_gfx2hlsl_f32_nan_check.py ok (4.5s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.1s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.1s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.1s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.2s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.3s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (3.7s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.2s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.2s), tests/startup_gfx2hlsl_refusals_check.py ok (0.7s), tests/startup_gfx2hlsl_root_check.py ok (0.9s), tests/startup_gfx2hlsl_sad_check.py ok (0.4s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.3s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.3s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.1s), tests/startup_gfx2hlsl_shift64_check.py ok (0.1s), tests/startup_gfx2hlsl_sload_const_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (6.5s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (0.8s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.1s), tests/startup_gfx2hlsl_swap_check.py ok (0.3s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (4.2s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (2.5s), tests/startup_image_2d_array_check.py ok (0.2s), tests/startup_image_3d_check.py ok (0.1s), tests/startup_image_gather_lz_check.py ok (0.7s), tests/startup_image_load_d16_check.py ok (0.8s), tests/startup_image_sample_a16_check.py ok (0.1s), tests/startup_image_sample_b_check.py ok (0.1s), tests/startup_image_sample_c_check.py ok (0.2s), tests/startup_image_sample_l_check.py ok (0.2s), tests/startup_image_sample_lod_check.py ok (0.6s), tests/startup_inline_sampler_check.py ok (0.1s), tests/startup_mesh57_skeleton_check.py ok (0.2s), tests/startup_run_ps1_check.py ok (9.5s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.1s), tests/startup_shader_cache_rekey_check.py ok (1.8s), tests/startup_smem_address_check.py ok (0.1s), tests/startup_stream_fetch_check.py ok (0.2s), tests/startup_stream_interface_check.py ok (0.2s), tests/startup_translator_check.py ok (0.4s)
  • sccache: 8/213 hits; wall 103.9s

Note: the first run missed the new border tests because the plan did not rebuild offscreen_check; this run adds it as a target. *_hardware runs on WARP in the VM and passed here too.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 20:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2549#issuecomment-7174260183) Win2025 WARP receipt for head 34b74000 after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `34b74000af157a0de922d680a46b89016cd3ac26`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target offscreen_check d3d12_xs_device_obj d3d12_xs_shim startup_sampler_comparison_check startup_translated_sampler_bindings_check -- -j 2`): `6.26s` (configure `2.15s`) - Test (`ctest --preset dev -R '^(startup_image_sample_c_border_(controls|warp)|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_gfx2hlsl_sample_c_lz_mip|startup_translator|startup_image_3d|startup_sampler_)' --parallel 4 --no-tests=error --output-on-failure`): **25/25 passed** (`5.20s`: `startup_image_3d_hardware` `1.73s`, `startup_image_3d_warp` `1.75s`, `startup_sampler_heap_hardware` `1.95s`, `startup_sampler_heap_warp` `2.02s`, `startup_gfx2hlsl_sample_c_lz_mip` `0.26s`, `startup_image_sample_c` `0.35s`, `startup_sampler_heap_wrapped_warp` `0.19s`, `startup_image_3d_controls` `0.17s`, `startup_sampler_heap_controls` `0.14s`, `startup_image_sample_c_border_controls` `0.28s`, `startup_sampler_lod_dropped_warp` `0.06s`, `startup_sampler_lod_warp` `0.06s`, `startup_sampler_x_swapped_warp` `0.06s`, `startup_translated_sampler_bindings` `0.03s`, `startup_sampler_x_warp` `0.08s`, `startup_translated_sampler_bindings_shared_axis_control` `0.03s`, `startup_sampler_comparison` `0.02s`, `startup_sampler_x_hardware` `0.06s`, `startup_sampler_lod_hardware` `0.06s`, `startup_sampler_x_swapped_hardware` `0.09s`, `startup_sampler_lod_dropped_hardware` `0.07s`, `startup_sampler_heap_wrapped_hardware` `0.16s`, `startup_translator` `0.64s`, `startup_image_sample_c_border_hardware` `2.50s`, `startup_image_sample_c_border_warp` `2.56s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target offscreen_check d3d12_xs_device_obj d3d12_xs_shim startup_sampler_comparison_check startup_translated_sampler_bindings_check -- -j 2`): `9.55s` (configure `2.13s`) - Test (`ctest --preset release -R '^(startup_image_sample_c_border_(controls|warp)|startup_image_sample_c|startup_sampler_comparison|startup_translated_sampler_bindings|startup_gfx2hlsl_sample_c_lz_mip|startup_translator|startup_image_3d|startup_sampler_)' --parallel 4 --no-tests=error --output-on-failure`): **25/25 passed** (`4.44s`: `startup_image_3d_warp` `1.61s`, `startup_image_3d_hardware` `1.67s`, `startup_sampler_heap_hardware` `1.72s`, `startup_sampler_heap_warp` `1.80s`, `startup_sampler_heap_wrapped_warp` `0.17s`, `startup_image_sample_c` `0.28s`, `startup_image_3d_controls` `0.13s`, `startup_sampler_x_warp` `0.05s`, `startup_gfx2hlsl_sample_c_lz_mip` `0.21s`, `startup_sampler_heap_controls` `0.13s`, `startup_sampler_x_swapped_warp` `0.05s`, `startup_sampler_lod_warp` `0.06s`, `startup_translated_sampler_bindings` `0.02s`, `startup_sampler_lod_dropped_warp` `0.07s`, `startup_sampler_comparison` `0.02s`, `startup_translated_sampler_bindings_shared_axis_control` `0.02s`, `startup_sampler_x_hardware` `0.05s`, `startup_sampler_lod_hardware` `0.05s`, `startup_sampler_x_swapped_hardware` `0.07s`, `startup_sampler_lod_dropped_hardware` `0.05s`, `startup_sampler_heap_wrapped_hardware` `0.15s`, `startup_translator` `0.60s`, `startup_image_sample_c_border_controls` `0.23s`, `startup_image_sample_c_border_warp` `1.99s`, `startup_image_sample_c_border_hardware` `1.99s`) - **Windows Python checks**: `tests/form_coverage_check.py` ok (`13.3s`), `tests/mesh_clip_cull_check.py` ok (`4.0s`), `tests/mesh_dynamic_geometry_check.py` ok (`0.2s`), `tests/mesh_heap_sampler_check.py` ok (`0.6s`), `tests/pso_readiness_check.py` ok (`0.7s`), `tests/rdna2_tools_check.py` ok (`2.3s`), `tests/startup_buffer_address_check.py` ok (`0.4s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.1s`), `tests/startup_compute_request_offline_check.py` ok (`0.5s`), `tests/startup_compute_translate_check.py` ok (`0.2s`), `tests/startup_flat_param_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`0.9s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`4.5s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`3.7s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.9s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sload_const_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`6.5s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`0.8s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`4.2s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.5s`), `tests/startup_image_2d_array_check.py` ok (`0.2s`), `tests/startup_image_3d_check.py` ok (`0.1s`), `tests/startup_image_gather_lz_check.py` ok (`0.7s`), `tests/startup_image_load_d16_check.py` ok (`0.8s`), `tests/startup_image_sample_a16_check.py` ok (`0.1s`), `tests/startup_image_sample_b_check.py` ok (`0.1s`), `tests/startup_image_sample_c_check.py` ok (`0.2s`), `tests/startup_image_sample_l_check.py` ok (`0.2s`), `tests/startup_image_sample_lod_check.py` ok (`0.6s`), `tests/startup_inline_sampler_check.py` ok (`0.1s`), `tests/startup_mesh57_skeleton_check.py` ok (`0.2s`), `tests/startup_run_ps1_check.py` ok (`9.5s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.1s`), `tests/startup_shader_cache_rekey_check.py` ok (`1.8s`), `tests/startup_smem_address_check.py` ok (`0.1s`), `tests/startup_stream_fetch_check.py` ok (`0.2s`), `tests/startup_stream_interface_check.py` ok (`0.2s`), `tests/startup_translator_check.py` ok (`0.4s`) - `sccache`: 8/213 hits; wall `103.9s` Note: the first run missed the new border tests because the plan did not rebuild `offscreen_check`; this run adds it as a target. `*_hardware` runs on WARP in the VM and passed here too. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 20:52 UTC · original

On Windows 11 (26100.9711) I ran the PR's original fixture against the renderer built from 34b74000. On Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP (10.0.26100.9711), DXC and FXC each matched all 13 four-channel outputs and caught all four sampler mutations. LLVM 15 also reassembled the 21 recorded programs byte for byte. The Server 2025 CPU and WARP run built the renderer. I checked its source revision and both artifact digests before the local runs.

I also checked the intersection of bilinear filtering and mixed X/Y addressing. The replay script uses four assembled guest programs, switches which axis uses the border, and selects opaque black or white. Its reference filters four independent depth comparisons at the four probe positions. Across three reference depths, each device/compiler pair matched all 12 four-channel results. Swapping the two addressing modes changed six of those results, and all six changed to the exact predicted values. Local hardware runs used the system D3D12 runtime with the debug layer unavailable.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 20:52 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2549#issuecomment-7174301937) On Windows 11 (26100.9711) I ran the PR's original fixture against the renderer built from `34b74000`. On Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP (10.0.26100.9711), DXC and FXC each matched all 13 four-channel outputs and caught all four sampler mutations. LLVM 15 also reassembled the 21 recorded programs byte for byte. The [Server 2025 CPU and WARP run](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45698056091) built the renderer. I checked its source revision and both artifact digests before the local runs. I also checked the intersection of bilinear filtering and mixed X/Y addressing. The [replay script](https://github.com/RavenCurseBurg/Xbox2Windows/blob/78405cacb2f861687bd08a550b38ad0734a385a0/tests/measure_bilinear_border_axes.py) uses four assembled guest programs, switches which axis uses the border, and selects opaque black or white. Its reference filters four independent depth comparisons at the four probe positions. Across three reference depths, each device/compiler pair matched all 12 four-channel results. Swapping the two addressing modes changed six of those results, and all six changed to the exact predicted values. Local hardware runs used the system D3D12 runtime with the debug layer unavailable.
This discussion has been locked. Commenting is limited to contributors.
No description provided.