MEMBAR

System registers, votes, shuffles and barriers

fixed bit field field the encoding fixes should be

MEMBAR

6362616059585756555453525150494847464544434241403938373635343332
1110111110011
313029282726252423222120191817161514131211109876543210
pred.notpred[9:8]

bits 63:48: 1110 1111 1001 1---

Runs execute_MEMBAR with Form() 0.

Fields

FieldBitsFrom
pred.not19the decoder
pred18:16the decoder
[9:8]9:8execute_MEMBAR

Operation Sail

MEMBAR: only compute has workgroup memory. Graphics memory barriers use Device scope even for MEMBAR.CTA; Vulkan does not permit Workgroup scope in those stages

let compute = Stage() == ST_CS;
MemoryBarrier(if compute & Field(8, 2) == 0b00 then 2 else 1, if compute then 2376 else 2120) /* 0x948, 0x848 */

Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Eden's maxwell.inc (GPL-2.0-or-later).