mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radeonsi/gfx8: use the proper dcc clear size
dcc_fast_clear_size is assigned using addrlib's dccFastClearSize, which is computed using the whole surface size (including layers) so we don't need to multiply dcc_fast_clear_size by num_layers. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4530 Cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14409>
This commit is contained in:
parent
21047a4a06
commit
d84e0096a5
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ bool vi_dcc_get_clear_info(struct si_context *sctx, struct si_texture *tex, unsi
|
|||
return false;
|
||||
|
||||
dcc_offset += tex->surface.u.legacy.color.dcc_level[level].dcc_offset;
|
||||
clear_size = tex->surface.u.legacy.color.dcc_level[level].dcc_fast_clear_size * num_layers;
|
||||
clear_size = tex->surface.u.legacy.color.dcc_level[level].dcc_fast_clear_size;
|
||||
}
|
||||
|
||||
si_init_buffer_clear(out, dcc_buffer, dcc_offset, clear_size, clear_value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue