Module: Mesa Branch: refs/keep-around/6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a Commit: 6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a
Author: Marek Olšák <marek.ol...@amd.com> Date: Tue Nov 14 19:44:33 2017 +0100 ac: pack legacy_surf_level better r600_texture: 1488 -> 1248 bytes Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com> --- 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 ec89f6b5bb..f18548f73e 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 { _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit