summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-06 17:32:04 -0800
committerKenneth Graunke <[email protected]>2018-01-06 17:34:54 -0800
commita693a6f51aa7c7e5db02e2a13d676c56b2aaed86 (patch)
tree4516e5b4ec28e391c0c67951a89b57a470c1a841 /src/mesa/drivers
parenta140aeb6195553efeab703e7e21b1d553eef205e (diff)
i965: Shut up a few unused variable warnings.
If asserts are disabled, you get pointless warnings about devinfo being used (it's used to assert on devinfo->gen).
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_multisample_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_multisample_state.c b/src/mesa/drivers/dri/i965/gen8_multisample_state.c
index 904e0fee2e5..5381d326f26 100644
--- a/src/mesa/drivers/dri/i965/gen8_multisample_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_multisample_state.c
@@ -36,7 +36,7 @@
static void
gen10_emit_wa_cs_stall_flush(struct brw_context *brw)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
+ UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo;
assert(devinfo->gen == 10);
brw_emit_pipe_control_flush(brw,
PIPE_CONTROL_CS_STALL |
@@ -54,7 +54,7 @@ gen10_emit_wa_cs_stall_flush(struct brw_context *brw)
static void
gen10_emit_wa_lri_to_cache_mode_zero(struct brw_context *brw)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
+ UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo;
assert(devinfo->gen == 10);
/* Write to CACHE_MODE_0 (0x7000) */