From 6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 14 Nov 2017 19:44:33 +0100 Subject: ac: pack legacy_surf_level better MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r600_texture: 1488 -> 1248 bytes Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_surface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { -- cgit v1.2.3