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 <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
43a2ba1b7d
commit
a04cb3f8a5
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue