diff options
author | Jason Ekstrand <[email protected]> | 2017-03-08 20:34:28 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-30 11:34:45 -0700 |
commit | fbcf92a278e7319a0786bd9244288839eeb42189 (patch) | |
tree | 3e671491c835791cbe5026803fd1ed6231dd8048 /src/compiler/nir/nir_opcodes.py | |
parent | 28e41506a6ee0631cf6ca04891dcb3adeff82f60 (diff) |
nir: Add support for 8 and 16-bit types
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opcodes.py')
-rw-r--r-- | src/compiler/nir/nir_opcodes.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 98692da7be6..31b46159a4f 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -174,7 +174,11 @@ for src_t in [tint, tuint, tfloat]: dst_types = [tint, tuint, tfloat] for dst_t in dst_types: - for bit_size in [32, 64]: + if dst_t == tfloat: + bit_sizes = [16, 32, 64] + else: + bit_sizes = [8, 16, 32, 64] + for bit_size in bit_sizes: unop_convert("{0}2{1}{2}".format(src_t[0], dst_t[0], bit_size), dst_t + str(bit_size), src_t, "src0") |