Mesa (master): ac/surface: remove shadowing declaration
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 11 08:25:19 UTC 2020
Module: Mesa
Branch: master
Commit: 506f5d9bda64fc07ee1a216cb3aeef98491c6365
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=506f5d9bda64fc07ee1a216cb3aeef98491c6365
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Mon May 11 09:18:49 2020 +0200
ac/surface: remove shadowing declaration
Fixes: 7691de0dcef ("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 at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4983>
---
src/amd/common/ac_surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 98f1276f425..1c2c0d8dad2 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -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));
}
More information about the mesa-commit
mailing list