pan/mdg: Fix discard encoding
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 31 Aug 2020 18:04:55 +0000 (14:04 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 19:43:55 +0000 (19:43 +0000)
Let's match the blob.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525>

src/panfrost/midgard/midgard_emit.c

index 2ad48c8ea74eb772c814b15cfe201ab29a7864df..a0fbe20c7740dc08d5ceaef2f50b146f03b5dcb4 100644 (file)
@@ -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) {