From 3931fbbbadf74d1c23db96fd8e2791d2d226adb0 Mon Sep 17 00:00:00 2001 From: local Date: Wed, 25 Nov 2026 15:57:05 -0600 Subject: [PATCH] Scalar buffer loads four dwords a call (VICTORY_SHADER_OPT=127; off): fxceless c36971b2's shader part What 53abe45a ("wip wide") brought in: opt bit 64, smem's loads through raw_dwords, its test and switch test as they are there (the global loads of this tree were wide already). Yard capture, turn by turn: 18.47 -> 18.45 ms (12 loops) and 18.23 -> 18.16 (5): nothing, so not on. With the bit off the code written is that of before. Not run yet: scalar_buffer_loads_read_the_same_dwords_one_call_or_four and the gpu tests on the second merge of local/next (2be0515c); the diagnostics build of 393e74fb finished. Belobug ae75a66a is this tree's own opt.rs (both from the fork at ba8697aa) without its first-lane pass; 7263339c is a trace: nothing to take. Co-Authored-By: Claude Opus 5.5 --- crates/victory-shader/src/emit/bitcode/opt.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/victory-shader/src/emit/bitcode/opt.rs b/crates/victory-shader/src/emit/bitcode/opt.rs index 5be0c09..d3ce5cd 100644 --- a/crates/victory-shader/src/emit/bitcode/opt.rs +++ b/crates/victory-shader/src/emit/bitcode/opt.rs @@ -56,6 +56,9 @@ pub const FIRST: u32 = 32; /// console load (`s_buffer_load_dwordx2` to `x16` from an SRV, a /// `global_load_dwordx2` to `x4`) by one call for every four of them, not /// by a call each (`lower.rs`, `raw_dwords`). The same bytes are read. +/// From fxceless/victory-fork c36971b2. On an RX 7900 XTX it is worth nothing: +/// the yard's frame replayed turn by turn, dispatches and draws 18.47 -> 18.45 +/// ms (12 loops) and 18.23 -> 18.16 (5 loops): the driver joins the loads. pub const WIDE: u32 = 64; /// The passes over the module. pub const MODULE: u32 = DEAD | FOLD | REUSE | FACTS | LOADS;