summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-12-10 21:10:45 +0200
committerMarek Olšák <[email protected]>2016-12-10 21:19:59 +0100
commitc81a89f66277fe7d9cb2353f39ccdae31efe2a12 (patch)
tree7129f2cec7240c7874471a019587af95e5014b2a /src/gallium/drivers/radeonsi/si_state.c
parent42011be1e27f59d750b781c10766e19ec0ee6ff5 (diff)
radeonsi: fix release build unused variable warnings
Signed-off-by: Grazvydas Ignotas <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 04c1a9f4c66..984540d511a 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -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