diff options
author | Eric Anholt <[email protected]> | 2019-08-14 14:53:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-08-28 10:39:36 -0700 |
commit | 174240c5e49732dd5ec8b9d5fbd10c3e35babbc6 (patch) | |
tree | bab72b0b76ca67ebb28020ae2acce0aa4630b27f /src/gallium/auxiliary/util | |
parent | 7c8cdee0b20d09d6181dcd9cb5142b6d9fe59e9e (diff) |
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 <[email protected]>
Acked-by: Adam Jackson <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_format_pack.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(): |