bifrost: Honor src swizzle in special math ops
[mesa.git] / src / panfrost / bifrost / bifrost_nir_algebraic.py
index d28c82d401ab41555f74c9890501baf50fa9c11a..6f3f6eee1a901fe5a214322ac2b9549f973267ed 100644 (file)
@@ -87,7 +87,8 @@ for op in SPECIAL:
         converts += [((op + '@16', a), ('f2f16', (op, ('f2f32', a))))]
 
 converts += [(('f2b32', a), ('fne32', a, 0.0)),
-             (('i2b32', a), ('ine32', a, 0))]
+             (('i2b32', a), ('ine32', a, 0)),
+             (('b2i32', a), ('iand', 'a@32', 1))]
 
 def main():
     parser = argparse.ArgumentParser()