bifrost: Lower x->bool conversions to != 0
Signed-off-by: Chris Forbes <chrisforbes@google.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6079>
This commit is contained in:
parent
8e8baecd6a
commit
0ffefad791
|
@ -86,6 +86,9 @@ SPECIAL = ['fexp2', 'flog2', 'fsin', 'fcos']
|
|||
for op in SPECIAL:
|
||||
converts += [((op + '@16', a), ('f2f16', (op, ('f2f32', a))))]
|
||||
|
||||
converts += [(('f2b32', a), ('fne32', a, 0.0)),
|
||||
(('i2b32', a), ('ine32', a, 0))]
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-p', '--import-path', required=True)
|
||||
|
|
Loading…
Reference in New Issue