projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b140a
)
i965: Use UNUSED to silence unused variable (used in assert).
author
Matt Turner
<mattst88@gmail.com>
Mon, 23 Jan 2017 18:50:20 +0000
(10:50 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Mon, 23 Jan 2017 18:50:20 +0000
(10:50 -0800)
src/mesa/drivers/dri/i965/brw_eu_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_eu_emit.c
b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index de6a1d9b33f94aac0a3afcca85e7b5351412c345..257757f2490bd72a1ff50cbe4815936d352f9d8d 100644
(file)
--- 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);
}