asahi: Remove no-direct-packing
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 1 Oct 2022 01:17:17 +0000 (21:17 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 13 Oct 2022 22:06:52 +0000 (18:06 -0400)
It's weird.

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

src/asahi/lib/gen_pack.py

index 8584eb3..a970d58 100644 (file)
@@ -526,7 +526,6 @@ class Parser(object):
             print(pack_header)
         elif name == "struct":
             name = attrs["name"]
-            self.no_direct_packing = attrs.get("no-direct-packing", False)
             object_name = self.gen_prefix(safe_name(name.upper()))
             self.struct = object_name
 
@@ -619,9 +618,8 @@ class Parser(object):
 
         self.emit_template_struct(self.struct, self.group)
         self.emit_header(name)
-        if self.no_direct_packing == False:
-            self.emit_pack_function(self.struct, self.group)
-            self.emit_unpack_function(self.struct, self.group)
+        self.emit_pack_function(self.struct, self.group)
+        self.emit_unpack_function(self.struct, self.group)
         self.emit_print_function(self.struct, self.group)
 
     def enum_prefix(self, name):