ac: make ac_compute_cmask() a static function
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Jun 2019 15:17:23 +0000 (17:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jun 2019 09:30:47 +0000 (11:30 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h

index 28256352cb7e1593854e3a6990f780041023bd26..7b86cb1e1f2148b93af6e2ca9079fa4b5f3ea365 100644 (file)
@@ -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;
index 08aac94d3a942db1808889b355fc3eb95d59446f..49f68f4fc92738c4594b17fe616dcaa065f5c761 100644 (file)
@@ -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