From 4c7ef1b02e371597ab7b46ecf390de1272e95dab Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 13 Jun 2019 17:17:23 +0200 Subject: [PATCH] ac: make ac_compute_cmask() a static function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-By: Bas Nieuwenhuizen --- src/amd/common/ac_surface.c | 6 +++--- src/amd/common/ac_surface.h | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 28256352cb7..7b86cb1e1f2 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -552,9 +552,9 @@ static int gfx6_surface_settings(ADDR_HANDLE addrlib, return 0; } -void ac_compute_cmask(const struct radeon_info *info, - const struct ac_surf_config *config, - struct radeon_surf *surf) +static void ac_compute_cmask(const struct radeon_info *info, + const struct ac_surf_config *config, + struct radeon_surf *surf) { unsigned pipe_interleave_bytes = info->pipe_interleave_bytes; unsigned num_pipes = info->num_tile_pipes; diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index 08aac94d3a9..49f68f4fc92 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -261,10 +261,6 @@ int ac_compute_surface(ADDR_HANDLE addrlib, const struct radeon_info *info, enum radeon_surf_mode mode, struct radeon_surf *surf); -void ac_compute_cmask(const struct radeon_info *info, - const struct ac_surf_config *config, - struct radeon_surf *surf); - #ifdef __cplusplus } #endif -- 2.30.2