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/bir.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/bir.c')
-rw-r--r-- | src/panfrost/bifrost/bir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c index c385cfe7587..f110564aa64 100644 --- a/src/panfrost/bifrost/bir.c +++ b/src/panfrost/bifrost/bir.c @@ -100,7 +100,7 @@ bi_get_component_count(bi_instruction *ins, unsigned src) } else { /* Stores imply VECTOR */ assert(ins->dest_type); - unsigned bytes = MAX2(nir_alu_type_get_type_size(ins->dest_type), 8); + unsigned bytes = nir_alu_type_get_type_size(ins->dest_type); return 32 / bytes; } } @@ -125,7 +125,7 @@ bi_bytemask_of_read_components(bi_instruction *ins, unsigned node) unsigned component_count = bi_get_component_count(ins, s); nir_alu_type T = ins->src_types[s]; unsigned size = nir_alu_type_get_type_size(T); - unsigned bytes = (MAX2(size, 8) / 8); + unsigned bytes = size / 8; unsigned cmask = (1 << bytes) - 1; for (unsigned i = 0; i < component_count; ++i) { |