[Mesa-dev] [PATCH 2/2] ac: make ac_compute_cmask() a static function
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Jun 13 15:17:23 UTC 2019
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
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.22.0
More information about the mesa-dev
mailing list