freedreno: fix compiler warning
authorRob Clark <robdclark@chromium.org>
Wed, 11 Sep 2019 16:52:53 +0000 (09:52 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 12 Sep 2019 19:52:04 +0000 (12:52 -0700)
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 <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/freedreno/freedreno_resource.h

index 144e62d06f0e588c138fcc4c26f0bfe7bad66b67..b16e5a2781cca2a383fe680b44bf3ad24762b1ef 100644 (file)
@@ -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));