diff options
author | Eric Anholt <[email protected]> | 2019-11-25 11:23:03 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-12-11 04:24:18 +0000 |
commit | ea7631a9a6a57e81600e8dc38fc2322f65e6ae98 (patch) | |
tree | bc6f24662e0b162809fdfa26875b8a3d8e43635d /src/freedreno/fdl | |
parent | bbe84c6c315db706406a40ac9dd7c198619e9794 (diff) |
freedreno: Move UBWC layout into a slices array like the non-UBWC slices.
This is a little refactor in preparation for UBWC mipmapping support.
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/freedreno/fdl')
-rw-r--r-- | src/freedreno/fdl/freedreno_layout.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/freedreno/fdl/freedreno_layout.h b/src/freedreno/fdl/freedreno_layout.h index 40989c33371..4704a5fc88d 100644 --- a/src/freedreno/fdl/freedreno_layout.h +++ b/src/freedreno/fdl/freedreno_layout.h @@ -81,6 +81,7 @@ struct fdl_slice { */ struct fdl_layout { struct fdl_slice slices[MAX_MIP_LEVELS]; + struct fdl_slice ubwc_slices[MAX_MIP_LEVELS]; uint32_t layer_size; bool layer_first : 1; /* see above description */ @@ -99,9 +100,6 @@ struct fdl_layout { uint32_t width0, height0, depth0; - /* UBWC specific fields: */ - uint32_t ubwc_offset; /* offset to UBWC meta data */ - uint32_t ubwc_pitch; uint32_t ubwc_size; }; @@ -131,7 +129,7 @@ fdl_ubwc_offset(const struct fdl_layout *layout, unsigned level, unsigned layer) debug_assert(level == 0); debug_assert(layer == 0); } - return layout->ubwc_offset; + return layout->ubwc_slices[0].offset; } static inline bool |