i965/fs: Move FB write default state mashing in a level.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Jun 2014 01:54:09 +0000 (18:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jun 2014 07:56:08 +0000 (00:56 -0700)
commitb207caf9bc9ba489f8f5c36bf93fa144c5e55658
tree49da65d598203881d41e82684b26d012a3a50cb8
parenta2ad771671d94feae16b35c26ed4d1907f74f50e
i965/fs: Move FB write default state mashing in a level.

We only need to alter the default state if we're emitting MOVs for
header related fields.  So, we can simply move the push/pop of state in
to the if (header_present) block, bypassing it in the common case.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79903
src/mesa/drivers/dri/i965/brw_fs_generator.cpp