From c8ac01af33a5bc63822915f08f89a7dbaf7d433f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 31 Aug 2020 14:04:55 -0400 Subject: [PATCH] pan/mdg: Fix discard encoding Let's match the blob. Signed-off-by: Alyssa Rosenzweig Cc: mesa-stable Part-of: --- src/panfrost/midgard/midgard_emit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_emit.c b/src/panfrost/midgard/midgard_emit.c index 2ad48c8ea74..a0fbe20c774 100644 --- a/src/panfrost/midgard/midgard_emit.c +++ b/src/panfrost/midgard/midgard_emit.c @@ -643,7 +643,8 @@ emit_branch(midgard_instruction *ins, int quadword_offset = 0; if (is_discard) { - /* Ignored */ + /* Fixed encoding, not actually an offset */ + quadword_offset = 0x2; } else if (is_tilebuf_wait) { quadword_offset = -1; } else if (target_number > block->base.name) { -- 2.30.2