diff options
author | Emil Velikov <[email protected]> | 2017-02-07 21:21:56 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-02-10 11:47:12 +0000 |
commit | a04cb3f8a5e53e76ffb19b55d91543d41387f372 (patch) | |
tree | db00e6f131cf55f06facbd020edad12c7f32d43f /src | |
parent | 43a2ba1b7dee769d476a754cc3a8332f7f3b7f39 (diff) |
intel/blorp: do not return const data by get_px_size_sa()
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.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index b89a112b8c4..bb73e51de09 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1859,7 +1859,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 }; |