pan/bi: Let !b2b imply branch_cond
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 10 Apr 2020 04:25:34 +0000 (00:25 -0400)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 10 Apr 2020 14:53:59 +0000 (16:53 +0200)
Like the blob. Probably doesn't matter.

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

src/panfrost/bifrost/bi_pack.c

index 3a37452a949f155ec89bc9d840461d12bfb08f32..604b0300746343259d572cbbc6d87c0db561f6cb 100644 (file)
@@ -49,6 +49,8 @@ bi_pack_header(bi_clause *clause, bi_clause *next, bool is_fragment)
                 .next_clause_type = next ? next->clause_type : 0,
         };
 
+        header.branch_cond |= header.back_to_back;
+
         uint64_t u = 0;
         memcpy(&u, &header, sizeof(header));
         return u;