Skip to content

Recompiler: leave unsafe group barriers to HLSL - #250

Draft
bmjask wants to merge 1 commit into
stack/246-show-windows-failuresfrom
stack/247-unsafe-barriers-hlsl
Draft

bmjask wants to merge 1 commit into
stack/246-show-windows-failuresfrom
stack/247-unsafe-barriers-hlsl

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #249.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates recompiler: leave unsafe group barriers to hlsl as one reviewable step in the redesign.

What is in it

  • c9b0645a is part of this logical unit.

Tested

The complete rewritten tail was verified tree-identical to integrated commit 963dcdca. Tests were not rerun during stack packaging.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, rebased the existing logical change onto the cleaned stack, verified final tree identity, created the stack branch, and drafted this description.

@bmjask
bmjask force-pushed the stack/247-unsafe-barriers-hlsl branch 2 times, most recently from d422089 to e6c8b11 Compare November 27, 2026 01:00
@bmjask
bmjask force-pushed the stack/246-show-windows-failures branch from 9311702 to b9bb69c Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/247-unsafe-barriers-hlsl branch 3 times, most recently from d9ba111 to d5c1218 Compare November 27, 2026 12:44
@bmjask
bmjask force-pushed the stack/246-show-windows-failures branch from 3053162 to aa37936 Compare November 27, 2026 12:52
@bmjask
bmjask force-pushed the stack/247-unsafe-barriers-hlsl branch from d5c1218 to a0c31c8 Compare November 27, 2026 12:52
Reject direct-DXIL compute and mesh programs whose group barrier spans multiple hardware waves. The direct barrier waits for waves the console may allow to leave or bypass it; the HLSL fallback already uses the safe counted barrier. Keep the coherence test on a one-wave group so it continues to test handle properties rather than the fallback boundary.

Adapted from upstream commit fb55e49.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/246-show-windows-failures branch from aa37936 to 5e343d1 Compare November 28, 2026 01:35
@bmjask
bmjask force-pushed the stack/247-unsafe-barriers-hlsl branch from a0c31c8 to 2ca9127 Compare November 28, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant