From bf91034d44a992b1e5a5aa49a3d3a6740be5b453 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 16 May 2016 11:08:55 -0700 Subject: [PATCH] i965: Mark is_lossless_compressed_aux UNUSED to silence warning. Used only in assert(). --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index cc7ecf8eb0e..a09757708cf 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -583,7 +583,7 @@ intel_miptree_create_layout(struct brw_context *brw, } else if (brw->gen >= 9 && num_samples > 1) { layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16; } else { - const bool is_lossless_compressed_aux = + const UNUSED bool is_lossless_compressed_aux = brw->gen >= 9 && num_samples == 1 && mt->format == MESA_FORMAT_R_UINT32; -- 2.30.2