From 966b7c3ed21092deabe4dadccca07dcf34ddd6e8 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 11 Sep 2019 09:52:53 -0700 Subject: [PATCH] freedreno: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fd6_blitter.c:724:31: warning: passing argument 1 of ‘fd_resource_level_linear’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Rob Clark Reviewed-by: Eric Anholt --- src/gallium/drivers/freedreno/freedreno_resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index 144e62d..b16e5a2 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -186,7 +186,7 @@ fd_resource_ubwc_offset(struct fd_resource *rsc, unsigned level, unsigned layer) /* This might be a5xx specific, but higher mipmap levels are always linear: */ static inline bool -fd_resource_level_linear(struct pipe_resource *prsc, int level) +fd_resource_level_linear(const struct pipe_resource *prsc, int level) { struct fd_screen *screen = fd_screen(prsc->screen); debug_assert(!is_a3xx(screen)); -- 2.7.4