i965: Use UNUSED to silence unused variable (used in assert).
authorMatt Turner <mattst88@gmail.com>
Mon, 23 Jan 2017 18:50:20 +0000 (10:50 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 23 Jan 2017 18:50:20 +0000 (10:50 -0800)
src/mesa/drivers/dri/i965/brw_eu_emit.c

index de6a1d9b33f94aac0a3afcca85e7b5351412c345..257757f2490bd72a1ff50cbe4815936d352f9d8d 100644 (file)
@@ -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);
       }