summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-09-11 09:52:53 -0700
committerRob Clark <[email protected]>2019-09-12 12:52:04 -0700
commit966b7c3ed21092deabe4dadccca07dcf34ddd6e8 (patch)
tree07638ef2498aa7ae1ae3125406a61ad22fb08bab /src/gallium/drivers/freedreno
parent6f0dc087b7a57fb8e0cdb4b2a884086953429afd (diff)
freedreno: fix compiler warning
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h
index 144e62d06f0..b16e5a2781c 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));