Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8468>
* - Flush TC L2 after rendering.
*/
for (unsigned i = 0; i < in->numMipLevels; i++) {
+ surf->u.gfx9.dcc_levels[i].offset = meta_mip_info[i].offset;
+ surf->u.gfx9.dcc_levels[i].size = meta_mip_info[i].sliceSize;
+
if (meta_mip_info[i].inMiptail) {
/* GFX10 can only compress the first level
* in the mip tail.
unsigned max_compressed_block_size : 2;
};
+struct gfx9_surf_level {
+ unsigned offset;
+ unsigned size;
+};
+
struct gfx9_surf_layout {
struct gfx9_surf_flags surf; /* color or depth surface */
struct gfx9_surf_flags fmask; /* not added to surf_size */
uint32_t prt_level_offset[RADEON_SURF_MAX_LEVELS];
/* Pitch of level in blocks, only valid for prt images. */
uint16_t prt_level_pitch[RADEON_SURF_MAX_LEVELS];
+
+ /* DCC level info */
+ struct gfx9_surf_level dcc_levels[RADEON_SURF_MAX_LEVELS];
};
struct radeon_surf {