[Mesa-dev] [PATCH 2/2] ac: make ac_compute_cmask() a static function

Marek Olšák maraeo at gmail.com
Thu Jun 13 18:20:00 UTC 2019


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Jun 13, 2019 at 11:14 AM Samuel Pitoiset <samuel.pitoiset at gmail.com>
wrote:

> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190613/3222fd7a/attachment.html>


More information about the mesa-dev mailing list