gallium: Skip generating the pack/unpack union if we don't use it.
authorEric Anholt <eric@anholt.net>
Wed, 14 Aug 2019 21:53:35 +0000 (14:53 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Aug 2019 17:39:36 +0000 (10:39 -0700)
Shaves 30k off of the 1.6M .c file, and makes for less noise for me
trying to understand how gallium formats actually work.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_format_pack.py

index b43851720ad57fc25f9a6f2f18c16bbf31378a01..dbffb9bef6b34e1e984692240be44bb67a273a93 100644 (file)
@@ -714,7 +714,7 @@ def generate(formats):
     for format in formats:
         if not is_format_hand_written(format):
             
-            if is_format_supported(format):
+            if is_format_supported(format) and not format.is_bitmask():
                 generate_format_type(format)
 
             if format.is_pure_unsigned():