diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-04-02 12:37:42 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-12 20:53:45 +0000 |
commit | 2fd8018845e1ffb4a537a34da631918735111055 (patch) | |
tree | 1249b90db4042dd3d0bfbd40f41f54eb36ebd851 /src/gallium/drivers/radeonsi/si_texture.c | |
parent | e9dc3df868d97ad88360131bada45732eb8535e7 (diff) |
ac/surface: split dcc level info from surface_info to save space
stencil level info doesn't have DCC
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10083>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_texture.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_texture.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index a301a32272f..30f2cea12e4 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -837,8 +837,8 @@ void si_print_texture_info(struct si_screen *sscreen, struct si_texture *tex, u_log_printf(log, " DCCLevel[%i]: enabled=%u, offset=%u, " "fast_clear_size=%u\n", - i, i < tex->surface.num_dcc_levels, tex->surface.u.legacy.level[i].dcc_offset, - tex->surface.u.legacy.level[i].dcc_fast_clear_size); + i, i < tex->surface.num_dcc_levels, tex->surface.u.legacy.dcc_level[i].dcc_offset, + tex->surface.u.legacy.dcc_level[i].dcc_fast_clear_size); } for (i = 0; i <= tex->buffer.b.b.last_level; i++) @@ -1071,11 +1071,11 @@ static struct si_texture *si_texture_create_object(struct pipe_screen *screen, unsigned size = 0; for (unsigned i = 0; i < tex->surface.num_dcc_levels; i++) { - if (!tex->surface.u.legacy.level[i].dcc_fast_clear_size) + if (!tex->surface.u.legacy.dcc_level[i].dcc_fast_clear_size) break; - size = tex->surface.u.legacy.level[i].dcc_offset + - tex->surface.u.legacy.level[i].dcc_fast_clear_size; + size = tex->surface.u.legacy.dcc_level[i].dcc_offset + + tex->surface.u.legacy.dcc_level[i].dcc_fast_clear_size; } /* Mipmap levels with DCC. */ |