radeonsi: fix release build unused variable warnings
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 10 Dec 2016 19:10:45 +0000 (21:10 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 10 Dec 2016 20:19:59 +0000 (21:19 +0100)
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_state.c

index 83870e507b9df53a4564d08885311603031d1d9a..e15fe4059290f0784609c30bb205bd84b8dea897 100644 (file)
@@ -972,7 +972,7 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx,
        struct si_context *sctx = (struct si_context*)ctx;
        struct r600_texture *src = (struct r600_texture*)info->src.resource;
        struct r600_texture *dst = (struct r600_texture*)info->dst.resource;
-       struct r600_texture *rtmp;
+       MAYBE_UNUSED struct r600_texture *rtmp;
        unsigned dst_width = u_minify(info->dst.resource->width0, info->dst.level);
        unsigned dst_height = u_minify(info->dst.resource->height0, info->dst.level);
        enum pipe_format format = info->src.format;
index 04c1a9f4c6653f98385dd676df10b2abdf97db02..984540d511a69cee94fbf66d3fd3bc0f0ac3a2f1 100644 (file)
@@ -3306,9 +3306,9 @@ static void si_emit_sample_mask(struct si_context *sctx, struct r600_atom *atom)
 
 static void si_delete_sampler_state(struct pipe_context *ctx, void *state)
 {
+#ifdef DEBUG
        struct si_sampler_state *s = state;
 
-#ifdef DEBUG
        assert(s->magic == SI_SAMPLER_STATE_MAGIC);
        s->magic = 0;
 #endif