CodeIs

pica.sail

the condition of format 2: the conditional codes against refx (25) and refy (24): cond (22) 0 either, 1 both, 2 x only, 3 y only

function CodeIs(i : int, set : bits(1)) -> bool = {
    let v = CondRead(i);
    if set == 0b1 then v else not_bool(v)
}

Used by


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 nihstro's shader_bytecode.h (BSD-3-Clause), as Azahar reads them.