summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-01-23 10:50:20 -0800
committerMatt Turner <[email protected]>2017-01-23 10:50:20 -0800
commitd349449a16825abc8336495afabadb2540b5a688 (patch)
tree07a94455442d33cf1478decf3c79d0c661b82a23 /src/mesa/drivers
parent09b140abb532dede5de6b03b1cc3c03852c1c9e9 (diff)
i965: Use UNUSED to silence unused variable (used in assert).
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index de6a1d9b33f..257757f2490 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -286,7 +286,7 @@ validate_reg(const struct gen_device_info *devinfo,
* destination horiz stride has to be a word.
*/
if (reg.type == BRW_REGISTER_TYPE_V) {
- unsigned elem_size = brw_element_size(devinfo, inst, dst);
+ unsigned UNUSED elem_size = brw_element_size(devinfo, inst, dst);
assert(hstride_for_reg[brw_inst_dst_hstride(devinfo, inst)] *
elem_size == 2);
}