[Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()
Jason Ekstrand
jason at jlekstrand.net
Tue Feb 7 23:37:50 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Tue, Feb 7, 2017 at 3:24 PM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Not much point in the const qualifier since we provide a copy to the
> user. Resolves the following -Wignored-qualifiers warning.
>
> src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' type qualifier on
> return type has no effect [-Wignored-qualifiers]
>
> v2: keep const qualifier of local variable.
>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> src/intel/blorp/blorp_blit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
> index 111f1c13a8..6582c4042a 100644
> --- a/src/intel/blorp/blorp_blit.c
> +++ b/src/intel/blorp/blorp_blit.c
> @@ -1857,7 +1857,7 @@ adjust_split_source_coords(const struct blt_axis
> *orig,
> split_coords->src1 = orig->src1 + (scale >= 0.0 ? delta1 : delta0);
> }
>
> -static const struct isl_extent2d
> +static struct isl_extent2d
> get_px_size_sa(const struct isl_surf *surf)
> {
> static const struct isl_extent2d one_to_one = { .w = 1, .h = 1 };
> --
> 2.11.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170207/75c8c551/attachment.html>
More information about the mesa-dev
mailing list