i965/fs: Make lower_load_payload etc. appear in INTEL_DEBUG=optimizer.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 16 Jan 2015 09:05:21 +0000 (01:05 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 16 Jan 2015 20:38:26 +0000 (12:38 -0800)
commitfaaca237341abc0f784edfb16df50104110365b8
tree8e2c928f082cd08fa113fbe15fee9baf8b6400b9
parenta4ab08bf451593dc45ebef80da66563b0ba5bbe5
i965/fs: Make lower_load_payload etc. appear in INTEL_DEBUG=optimizer.

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

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

We recently did the equivalent change in the vec4 backend (commit
9b8bd67768769b685c25e1276e053505aede5f93).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp