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_ra.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_ra.c')
-rw-r--r-- | src/panfrost/bifrost/bi_ra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index a047932ae71..f7feec222bd 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -123,8 +123,8 @@ bi_adjust_src_ra(bi_instruction *ins, struct lcra_state *l, unsigned src) /* Use the swizzle as component select */ nir_alu_type T = ins->src_types[src]; unsigned size = nir_alu_type_get_type_size(T); - unsigned bytes = (MAX2(size, 8) / 8); - unsigned comps_per_reg = 4 / bytes; + assert(size <= 32); /* TODO: 64-bit */ + unsigned comps_per_reg = 32 / size; unsigned components = bi_get_component_count(ins, src); for (unsigned i = 0; i < components; ++i) { @@ -159,7 +159,7 @@ bi_adjust_dest_ra(bi_instruction *ins, struct lcra_state *l) unsigned tz = __builtin_ctz(ins->writemask); - /* Recall writemask is one bit per byte, so tz is in bytes */ + /* Recall writemask is one bit per byte, so tz is in eytes */ unsigned regs = tz / 4; offset = regs * 4; |