etnaviv: Fix unused var warning in release build from assertions.
authorEric Anholt <eric@anholt.net>
Tue, 25 Aug 2020 18:31:42 +0000 (11:31 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Aug 2020 22:45:08 +0000 (22:45 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>

src/gallium/drivers/etnaviv/etnaviv_rs.c

index bcd11e05a789e0cba65e6d1963414e8d2a49a573..85387d5b7b8aae39eebf0f49384f8138046175ac 100644 (file)
@@ -269,7 +269,7 @@ void
 etna_rs_gen_clear_surface(struct etna_context *ctx, struct etna_surface *surf,
                           uint64_t clear_value)
 {
-   struct etna_screen *screen = ctx->screen;
+   ASSERTED struct etna_screen *screen = ctx->screen;
    struct etna_resource *dst = etna_resource(surf->base.texture);
    uint32_t format;