diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-21 17:41:34 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-22 03:32:35 +0000 |
commit | cd7fec782edd3c6d2e154994c15ceee65c3c0dc9 (patch) | |
tree | 0bf2e1b6f276e09f085a1c62b0f2bbf263c1c1ec /src/panfrost/bifrost/bi_print.c | |
parent | 12299dead7ee589ee4a84af6058762381ef44c2c (diff) |
pan/bi: Remove hacks for 1-bit booleans in IR
Now that we lower them away, a bunch of special cases disappear.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index f06cff849d3..73de74381cc 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -227,7 +227,7 @@ bi_print_alu_type(nir_alu_type t, FILE *fp) static void bi_print_swizzle(bi_instruction *ins, unsigned src, FILE *fp) { - unsigned size = MAX2(nir_alu_type_get_type_size(ins->dest_type), 8); + unsigned size = nir_alu_type_get_type_size(ins->dest_type); unsigned count = (size == 64) ? 1 : (32 / size); fprintf(fp, "."); @@ -303,7 +303,7 @@ bi_print_writemask(bi_instruction *ins, FILE *fp) { unsigned bits_per_comp = nir_alu_type_get_type_size(ins->dest_type); assert(bits_per_comp); - unsigned bytes_per_comp = MAX2(bits_per_comp / 8, 1); + unsigned bytes_per_comp = bits_per_comp / 8; unsigned comps = 16 / bytes_per_comp; unsigned smask = (1 << bytes_per_comp) - 1; fprintf(fp, "."); |