From: Samuel Pitoiset Date: Thu, 13 Jun 2019 15:17:23 +0000 (+0200) Subject: ac: make ac_compute_cmask() a static function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c7ef1b02e371597ab7b46ecf390de1272e95dab;p=mesa.git ac: make ac_compute_cmask() a static function Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-By: Bas Nieuwenhuizen --- 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