summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-11-14 19:22:15 +0100
committerMarek Olšák <[email protected]>2017-11-27 14:12:38 +0100
commit474b4a919181a155187446ca0e0c0b3522fbdee2 (patch)
tree51d3c8ad31401ab34bfc2f2a4015223df10fa00c /src/amd/common
parentb5444877c0820b7848c07d1bc4e9a706f90894a5 (diff)
ac: pack ac_surface better
r600_texture: 1736 -> 1488 bytes Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_surface.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index 7ac4737e6df..1dc95cd0883 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -72,8 +72,8 @@ enum radeon_micro_mode {
struct legacy_surf_level {
uint64_t offset;
uint64_t slice_size;
- uint64_t dcc_offset;
- uint64_t dcc_fast_clear_size;
+ 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;
@@ -187,8 +187,9 @@ struct radeon_surf {
uint8_t tile_swizzle;
uint64_t surf_size;
- uint64_t dcc_size;
- uint64_t htile_size;
+ /* DCC and HTILE are very small. */
+ uint32_t dcc_size;
+ uint32_t htile_size;
uint32_t htile_slice_size;