From 174240c5e49732dd5ec8b9d5fbd10c3e35babbc6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 14 Aug 2019 14:53:35 -0700 Subject: [PATCH] gallium: Skip generating the pack/unpack union if we don't use it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Adam Jackson Reviewed-by: Marek Olšák --- src/gallium/auxiliary/util/u_format_pack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_format_pack.py b/src/gallium/auxiliary/util/u_format_pack.py index b43851720ad..dbffb9bef6b 100644 --- a/src/gallium/auxiliary/util/u_format_pack.py +++ b/src/gallium/auxiliary/util/u_format_pack.py @@ -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(): -- 2.30.2