From: Eric Anholt Date: Wed, 14 Aug 2019 21:53:35 +0000 (-0700) Subject: gallium: Skip generating the pack/unpack union if we don't use it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=174240c5e49732dd5ec8b9d5fbd10c3e35babbc6;p=mesa.git gallium: Skip generating the pack/unpack union if we don't use it. 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 --- 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():