diff options
author | Karol Herbst <kherbst@redhat.com> | 2024-06-13 21:51:27 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-06-14 13:56:34 +0000 |
commit | f58247882a2906217fd829eaace96a9691edff50 (patch) | |
tree | dd319123a06d5f526bb1bfb4e1fad7a13703975b /src/gallium/include | |
parent | 59937f62a6ba30fedc5bfd0d399388c77370449c (diff) |
gallium: reduce pipe_resource.usage to 4 bits
This works around a bindgen bug, but also moves the value into a single
byte as per the addition of compression_rate it spanned over two bytes.
Fixes: 5db73986725 ("gallium: add interface for fixed-rate surface/texture compression")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29720>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 096b96c061d..40510470be8 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -581,7 +581,7 @@ struct pipe_resource unsigned compression_rate:4; /**< Fixed-rate compresion bitrate if any */ - unsigned usage:8; /**< PIPE_USAGE_x (not a bitmask) */ + unsigned usage:4; /**< PIPE_USAGE_x (not a bitmask) */ unsigned bind; /**< bitmask of PIPE_BIND_x */ unsigned flags; /**< bitmask of PIPE_RESOURCE_FLAG_x */ |