i965/gen7: Use to the correct program when uploading transform feedback state.
authorPaul Berry <stereotype441@gmail.com>
Wed, 22 Jan 2014 13:45:28 +0000 (05:45 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 23 Jan 2014 21:41:36 +0000 (13:41 -0800)
commit43e77215b13b2f86e461cd8a62b542fc6854dd1c
tree2c98d2e73cf948c652673d75b6775d1940b30f80
parente190709119d8eb85c67bfbad5be699d39ad0118e
i965/gen7: Use to the correct program when uploading transform feedback state.

Transform feedback may come from either the geometry shader or the
vertex shader, so we can't use
ctx->Shader.CurrentProgram[MESA_SHADER_VERTEX] to find the current
post-link transform feedback information.  Fortunately we can use
ctx->TransformFeedback.CurrentObject->shader_program.

Cc: 10.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen7_sol_state.c