<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/tools/wave64_emulate_opt.py, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T20:45:21+00:00</updated>
<entry>
<title>wave64_emulate_opt: a guarded s_barrier keeps only the tail in the round scheduler (SHADER-W64-STRUCTURED-SBARRIER-TAIL)</title>
<updated>2026-11-25T20:45:21+00:00</updated>
<author>
<name>DadaCap</name>
<email>167002618+DadaCap@users.noreply.github.com</email>
</author>
<published>2026-11-25T20:45:21+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=84816055d526062d6c61da6076fc31c92aee2b66'/>
<id>urn:sha1:84816055d526062d6c61da6076fc31c92aee2b66</id>
<content type='text'>
plan_structured_emulation gave no plan for any multi-wave program with an s_barrier under a guard or in a loop, which every mesh program has (NGG epilogue). The tail scheduler used from an early s_endpgm on now takes over from that s_barrier on, and what comes before is emitted structured.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix(wave64_emulate_opt): refuse exec-fold regions containing a trailing conditional branch</title>
<updated>2026-11-25T08:06:01+00:00</updated>
<author>
<name>whoalin1</name>
<email>207920491+whoalin1@users.noreply.github.com</email>
</author>
<published>2026-11-25T08:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=33431d6fe5482fdc87edb212f325f37386b4937a'/>
<id>urn:sha1:33431d6fe5482fdc87edb212f325f37386b4937a</id>
<content type='text'>
A block with len(raw_edges[u]) == 1 ending in a conditional branch (no
fallthrough block, so falling through writes %pc = len(blocks) = END)
cannot safely sit inside a folded s_cbranch_execz/nz region whose exit
unconditionally sets %pc = skip.

Reject such blocks during the region walk in find_local_exec_folds
(matching the existing
ot succ[u] check) and add semantic regression
tests covering both s_cbranch_scc1 X and s_cbranch_scc1 skip in
structured and --dispatch-loop --wave64-emulate modes.

Co-Authored-By: Gemini 4 Neon &lt;noreply@google.com&gt;
</content>
</entry>
<entry>
<title>fix(rdna2spirv): include END in out_pcs for trailing conditional branches</title>
<updated>2026-11-25T01:41:00+00:00</updated>
<author>
<name>whoalin1</name>
<email>207920491+whoalin1@users.noreply.github.com</email>
</author>
<published>2026-11-24T21:56:36+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=8e5cf5aef1942811bc6e377077b8dc8f388ff8fc'/>
<id>urn:sha1:8e5cf5aef1942811bc6e377077b8dc8f388ff8fc</id>
<content type='text'>
A conditional branch in the last basic block (no fallthrough block, so
len(raw_edges[b]) == 1) emits OpSelect(%cond, tgt, len(blocks)) and can
leave %pc at either tgt or cfg_structure.END.

Compute exact per-block out_pcs in rdna2spirv._block_out_pcs (matching
wave64_emulate_opt), pass it through capped_tree() into both
cfg_structure.structure() (so single-target fall-off-the-end blocks also
keep their dominated target guard) and unwrap_known_pc_guards(), and
pass compact_out_pcs into cfg_structure.structure() in wave64_emulate_opt.

Add unit and semantic regression tests covering both the loop back-edge
repro reported in review and the non-loop dominated-target variant.

Co-Authored-By: Gemini 4 Neon &lt;noreply@google.com&gt;
</content>
</entry>
<entry>
<title>cfg_structure / rdna2spirv: unwrap tautological %pc guards in structured CFGs (ms_wave_info_s3 AMD LLPC crash)</title>
<updated>2026-11-25T01:40:21+00:00</updated>
<author>
<name>whoalin1</name>
<email>207920491+whoalin1@users.noreply.github.com</email>
</author>
<published>2026-11-24T14:03:32+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=0681b9d280ee1adac2d123fb47265da4d9e35444'/>
<id>urn:sha1:0681b9d280ee1adac2d123fb47265da4d9e35444</id>
<content type='text'>
cfg_structure.structure() wraps post-dominating join blocks after a diamond or loop in a ('guard', g, ...) node even when %pc == g is tautologically true on every incoming path. wave64_emulate_opt._unwrap_known_pc_guards already unwraps these guards for --wave64-emulate, which is why ms_wave_info_s3 passed on 32-wide NVIDIA GPUs while crashing with 0xC0000005 on native wave64 AMD RDNA2 Windows (driver 24.10.24, LLPC) where blk2's OpControlBarrier stayed trapped inside a conditional OpBranchConditional.

Move unwrap_known_pc_guards into tools/cfg_structure.py (reused by wave64_emulate_opt with zero duplication) and apply it in rdna2spirv.capped_tree() so both assemble() and needs_barrier_rounds() see post-dominating join blocks at top level.

SHADER-STRUCTURED-PC-UNWRAP

Co-Authored-By: Gemini 4 Neon &lt;noreply@google.com&gt;
</content>
</entry>
<entry>
<title>[integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)</title>
<updated>2026-11-24T17:42:12+00:00</updated>
<author>
<name>Moriz82</name>
<email>72836413+Moriz82@users.noreply.github.com</email>
</author>
<published>2026-11-24T17:42:12+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=273b3bdf9d6e736442ad584ad464df6e86ee928b'/>
<id>urn:sha1:273b3bdf9d6e736442ad584ad464df6e86ee928b</id>
<content type='text'>
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma &lt;47513553+Plaaasma@users.noreply.github.com&gt;
Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #263 from kotekompotek/contribution/wave64-emulate-barrier-sync</title>
<updated>2026-11-24T03:28:16+00:00</updated>
<author>
<name>ubiquitarianism</name>
<email>283527159+ubiquitarianism@users.noreply.github.com</email>
</author>
<published>2026-11-24T03:28:16+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=268389e20d09bec9261c4c5bc750606acf8fd2e1'/>
<id>urn:sha1:268389e20d09bec9261c4c5bc750606acf8fd2e1</id>
<content type='text'>
rdna2spirv: wire Wave64 emulate barrier/sync optimization pass</content>
</entry>
<entry>
<title>wave64_emulate_opt: an SGPR pair with one mask half and one constant half counts as a lane mask</title>
<updated>2026-11-24T03:08:20+00:00</updated>
<author>
<name>Yash Dubey</name>
<email>yash.dubey803at@gmail.com</email>
</author>
<published>2026-11-24T02:27:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=bed6382f78cdc0265e58bc70cf1e3b70afac6efb'/>
<id>urn:sha1:bed6382f78cdc0265e58bc70cf1e3b70afac6efb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge #3976 into own/slot67</title>
<updated>2026-11-23T21:49:07+00:00</updated>
<author>
<name>TreXito</name>
<email>81475944+TreXito@users.noreply.github.com</email>
</author>
<published>2026-11-23T21:49:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=bef74887335b3cdaac10f3ea9b0aca8b9ccd2a96'/>
<id>urn:sha1:bef74887335b3cdaac10f3ea9b0aca8b9ccd2a96</id>
<content type='text'>
regen_fixtures finds its sources by marker on main, so the two ds_append
sources carry the marker instead of a SHADERS entry. ds_append and
ds_consume join wave64_emulate_opt's always-barrier ops (autogenes-sudo's
fix on #3976): under --wave64-emulate they exchange through a barrier
round, and a guarded one in a multi-wave group hit the translator's assert.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>wave64: align emulate barrier prediction for s_flbit, mixed s_cmp_*_u64, and ds_nop</title>
<updated>2026-11-23T16:13:20+00:00</updated>
<author>
<name>Pavel Kotek</name>
<email>334189328+kotekompotek@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:10:35+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=80417b9c4ec073dce28e67916d4d3bed564cdbc5'/>
<id>urn:sha1:80417b9c4ec073dce28e67916d4d3bed564cdbc5</id>
<content type='text'>
Fixes three --wave64-emulate AssertionError crashes and sync mismatches:
- tools/wave64_emulate_opt.py (_classify_block_body, _insn_may_barrier): recognize s_flbit_i32_b32 and s_flbit_i32 on lane masks, and s_cmp_eq_u64/s_cmp_lg_u64 on mixed mask+data SGPR pairs via _has_any_lane_mask_word().
- tools/rdna2spirv.py (Gen.x_memory_order): treat ds_nop as a no-op matching NOOPS and wave64_emulate_opt._x_memory_order_access().
- tests/semantic/test_wave64_emulate_opt.py: add FindSMsb to run_emulated_workgroup OpExtInst handler.
- tests/semantic/test_wave64_emulate_barriers.py: add unit and 64/128-thread workgroup interpreter regression tests.
- docs/design.md: document the wave64-emulate barrier alignment rules and CPU verification scope.

Verified locally (CPU only, no GPU/spirv-val/llvm-mc):
- python -I tests/semantic/test_wave64_emulate_barriers.py -&gt; 13/13 OK
- python -I tests/semantic/test_wave64_emulate_opt.py -&gt; 22/22 OK
- pytest -q (12 test files) -&gt; 70 passed

# Conflicts:
#	docs/design.md

# Conflicts:
#	docs/design.md
#	tools/wave64_emulate_opt.py

# Conflicts:
#	tools/wave64_emulate_opt.py
</content>
</entry>
<entry>
<title>wave64_emulate_opt: cache opcode metadata, fuse liveness/body pass, and precompute superblock dirty transfer (#6895)</title>
<updated>2026-11-23T15:45:26+00:00</updated>
<author>
<name>TG0000</name>
<email>122870448+TG0000@users.noreply.github.com</email>
</author>
<published>2026-11-23T15:45:26+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=8c22bf40a00f6bfe88b047abcc5cdbfcbc59d00d'/>
<id>urn:sha1:8c22bf40a00f6bfe88b047abcc5cdbfcbc59d00d</id>
<content type='text'>
Squash-merged after diff review of PR #6895 - wave64_emulate_opt: cache opcode metadata, fuse liveness/body pass, and precompute superblock dirty transfer</content>
</entry>
</feed>
