pan/bi: Expand clause type to 5-bit
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 2 Oct 2020 17:54:09 +0000 (13:54 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 10 Oct 2020 20:53:10 +0000 (16:53 -0400)
The upper bit is reserved.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7081>

src/panfrost/bifrost/bifrost.h
src/panfrost/bifrost/disassemble.c

index 055e8d4..98f89aa 100644 (file)
@@ -99,10 +99,8 @@ struct bifrost_header {
         unsigned staging_register : 6;
         unsigned scoreboard_deps: 8;
         unsigned scoreboard_index: 3;
-        enum bifrost_clause_type clause_type: 4;
-        unsigned unk3 : 1; // part of clauseType?
-        enum bifrost_clause_type next_clause_type: 4;
-        unsigned unk4 : 1; // part of nextClauseType?
+        enum bifrost_clause_type clause_type : 5;
+        enum bifrost_clause_type next_clause_type : 5;
 } __attribute__((packed));
 
 enum bifrost_packed_src {
index 7827885..1141a3c 100644 (file)
@@ -134,10 +134,6 @@ static void dump_header(FILE *fp, struct bifrost_header header, bool verbose)
 
         if  (header.unk2)
                 fprintf(fp, "unk2 ");
-        if (header.unk3)
-                fprintf(fp, "unk3 ");
-        if (header.unk4)
-                fprintf(fp, "unk4 ");
 
         if (header.terminate_discarded_threads)
                 fprintf(fp, "td ");