From 54f96544ec244cffae784cec072f8e7327c58301 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 5 Aug 2020 18:09:51 -0400 Subject: [PATCH] pan/bi: Drop use of MALI_POSITIVE Contributing to a dep on the main cmdstream. It's a fancy word for subtract one... Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index d4351e2..d4a61a2 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -1219,7 +1219,7 @@ bi_pack_add_ld_vary(bi_clause *clause, bi_instruction *ins, bi_registers *regs) struct bifrost_ld_var pack = { .src0 = bi_get_src(ins, regs, 1), .addr = packed_addr, - .channels = MALI_POSITIVE(channels), + .channels = channels - 1, .interp_mode = ins->load_vary.interp_mode, .reuse = ins->load_vary.reuse, .flat = ins->load_vary.flat, @@ -1352,7 +1352,7 @@ bi_pack_add_ld_attr(bi_clause *clause, bi_instruction *ins, bi_registers *regs) .src0 = bi_get_src(ins, regs, 1), .src1 = bi_get_src(ins, regs, 2), .location = bi_get_immediate(ins, 0), - .channels = MALI_POSITIVE(ins->vector_channels), + .channels = ins->vector_channels - 1, .type = bi_pack_ldst_type(ins->dest_type), .op = BIFROST_ADD_OP_LD_ATTR }; @@ -1370,7 +1370,7 @@ bi_pack_add_st_vary(bi_clause *clause, bi_instruction *ins, bi_registers *regs) .src0 = bi_get_src(ins, regs, 1), .src1 = bi_get_src(ins, regs, 2), .src2 = bi_get_src(ins, regs, 3), - .channels = MALI_POSITIVE(ins->vector_channels), + .channels = ins->vector_channels - 1, .op = BIFROST_ADD_OP_ST_VAR }; -- 2.7.4