From: Marek Olšák Date: Tue, 14 Nov 2017 18:44:33 +0000 (+0100) Subject: ac: pack legacy_surf_level better X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a;p=mesa.git ac: pack legacy_surf_level better r600_texture: 1488 -> 1248 bytes Reviewed-by: Nicolai Hähnle --- diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index ec89f6b5bb9..f18548f73e4 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -74,9 +74,9 @@ struct legacy_surf_level { uint32_t slice_size_dw; /* in dwords; max = 4GB / 4. */ uint32_t dcc_offset; /* relative offset within DCC mip tree */ uint32_t dcc_fast_clear_size; - uint16_t nblk_x; - uint16_t nblk_y; - enum radeon_surf_mode mode; + unsigned nblk_x:15; + unsigned nblk_y:15; + enum radeon_surf_mode mode:2; }; struct legacy_surf_layout {