aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost_compile.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-21 17:41:34 -0400
committerMarge Bot <[email protected]>2020-03-22 03:32:35 +0000
commitcd7fec782edd3c6d2e154994c15ceee65c3c0dc9 (patch)
tree0bf2e1b6f276e09f085a1c62b0f2bbf263c1c1ec /src/panfrost/bifrost/bifrost_compile.c
parent12299dead7ee589ee4a84af6058762381ef44c2c (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/bifrost_compile.c')
-rw-r--r--src/panfrost/bifrost/bifrost_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index 1b08e7b433c..43b44314fec 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -455,7 +455,7 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
unsigned comps = instr->dest.dest.ssa.num_components;
assert(comps == 1);
unsigned bits = bits_per_comp * comps;
- unsigned bytes = MAX2(bits / 8, 1);
+ unsigned bytes = bits / 8;
alu.writemask = (1 << bytes) - 1;
} else {
unsigned comp_mask = instr->dest.write_mask;