aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_serialize.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-05-14 14:50:52 -0500
committerMarge Bot <eric+marge@anholt.net>2020-05-15 03:49:18 +0000
commitea62c237031a05e82147bca2699269bf2d80fa05 (patch)
tree14225795b1f7e085318c513f716c8e66c0a0644b /src/compiler/nir/nir_serialize.c
parent57e796a12a883f5845c8e0ed05ec6bdb6d055b53 (diff)
downloadexternal_mesa3d-ea62c237031a05e82147bca2699269bf2d80fa05.tar.gz
external_mesa3d-ea62c237031a05e82147bca2699269bf2d80fa05.tar.bz2
external_mesa3d-ea62c237031a05e82147bca2699269bf2d80fa05.zip
nir: Use 8-bit types for most info fields
This shrinks nir_intrinsics.c.o from 73K to 35K and nir_opcodes.c.o from 64K to 31K on a release build. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5045>
Diffstat (limited to 'src/compiler/nir/nir_serialize.c')
-rw-r--r--src/compiler/nir/nir_serialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_serialize.c b/src/compiler/nir/nir_serialize.c
index ddb9628b3c1..6688e9e8b17 100644
--- a/src/compiler/nir/nir_serialize.c
+++ b/src/compiler/nir/nir_serialize.c
@@ -1443,7 +1443,7 @@ union packed_tex_data {
uint32_t u32;
struct {
enum glsl_sampler_dim sampler_dim:4;
- nir_alu_type dest_type:8;
+ unsigned dest_type:8;
unsigned coord_components:3;
unsigned is_array:1;
unsigned is_shadow:1;