i965: Prepare gs_state emitting code to include gen4-5.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 6 Jun 2017 16:38:46 +0000 (09:38 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 13 Jul 2017 22:39:49 +0000 (15:39 -0700)
commit29363882057dadbf8d536d214253a49908b29a85
tree9b51923b35cb85eff4fb5b3a83b8704b524454bb
parent9a2cca929f9f43ae288908efbf05647167a96728
i965: Prepare gs_state emitting code to include gen4-5.

Since we always call brw_batch_emit anyways, we can hopefully make things
simpler by calling it only once, and then branching inside its body. This
can be helpful when bringing the gen4-5 code into this function.

Additionally, check for GEN_GEN == 6 instead of < 7 in cases that won't apply
to lower gens.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/genX_state_upload.c