i965: Show opt_vector_float() and later passes in INTEL_DEBUG=optimizer.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Jan 2015 00:47:25 +0000 (16:47 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 3 Jan 2015 09:45:15 +0000 (01:45 -0800)
commit9b8bd67768769b685c25e1276e053505aede5f93
treef2a737aee363ebb296a78c9f88bd2cac308900e2
parent61711316f50294959e48156229f1383002e1cdb8
i965: Show opt_vector_float() and later passes in INTEL_DEBUG=optimizer.

In order to support calling opt_vector_float() inside a condition, this
patch makes OPT() a statement expression:

https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html

We've used that elsewhere already.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp