i965: Combine 3DSTATE_STREAMOUT emitters and genX_sol_state atoms.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 22 Jun 2016 07:33:46 +0000 (00:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 Jun 2016 18:58:50 +0000 (11:58 -0700)
commit4db98f8beb990676be0833dda6c37566d0283911
treebfab0300dd444ce6eb7814e2c64df756e980028b
parentfb857b5eea43640bfe19dcc12a88a09a6448e55a
i965: Combine 3DSTATE_STREAMOUT emitters and genX_sol_state atoms.

They're basically the same.  Let's avoid the code duplication.

v2: Fix SO_BUFFER_ENABLE stuff to only happen on Gen < 8 (caught
    by Jason Ekstrand).

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen7_sol_state.c
src/mesa/drivers/dri/i965/gen8_sol_state.c