ac: pack legacy_surf_level better
authorMarek Olšák <marek.olsak@amd.com>
Tue, 14 Nov 2017 18:44:33 +0000 (19:44 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 27 Nov 2017 13:46:16 +0000 (14:46 +0100)
r600_texture: 1488 -> 1248 bytes

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.h

index ec89f6b5bb912145609511203783158da517e4a4..f18548f73e46e245dea38315eb95952379a146dc 100644 (file)
@@ -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 {