diff options
author | Marek Olšák <[email protected]> | 2017-11-14 19:44:33 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-27 14:46:16 +0100 |
commit | 6b8909f2d19064c6dcd6ccd6a21cddf93a545c7a (patch) | |
tree | 4272fa775e900598f4b4679c665b9a641a992eac /src/amd | |
parent | ec15ff78c3ed4a2b39a45ecf74292090fdc99c6e (diff) |
ac: pack legacy_surf_level better
r600_texture: 1488 -> 1248 bytes
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_surface.h | 6 |
1 files 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 { |