i965/sf: Replace push/pop in brw_emit_anyprim_setup.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 25 May 2014 08:08:56 +0000 (01:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 May 2014 20:46:02 +0000 (13:46 -0700)
commit4b846e231e8545ae0f474202214100811dc04974
tree78a37ace7b977c9215f49d2be82b12fdae86e24f
parent471bff4c626d6a378e56e21e0c7e5e54ac523b23
i965/sf: Replace push/pop in brw_emit_anyprim_setup.

Each of the subroutine emitters alter the predication state, but
otherwise don't change anything (or put it back when they do).
Resetting predication at the end makes these functions idempotent with
regard to the default instruction state - which is a nice property.

With that in place, push/pop is no longer necessary.

v2: Improve whitespace (requested by Matt).

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