ac/surface: remove shadowing declaration

Fixes: 7691de0dce ("ac/surface,radeonsi: move the set/get_bo_metadata code to ac_surface.c")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2929
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4983>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2020-05-11 09:18:49 +02:00 committed by Marge Bot
parent 266978f7ca
commit 506f5d9bda
1 changed files with 2 additions and 2 deletions

View File

@ -2000,8 +2000,8 @@ void ac_surface_get_bo_metadata(const struct radeon_info *info,
uint64_t dcc_offset = 0;
if (surf->dcc_offset) {
uint64_t dcc_offset = surf->display_dcc_offset ? surf->display_dcc_offset
: surf->dcc_offset;
dcc_offset = surf->display_dcc_offset ? surf->display_dcc_offset
: surf->dcc_offset;
assert((dcc_offset >> 8) != 0 && (dcc_offset >> 8) < (1 << 24));
}