i965: use _Shader to get fragment program when updating surface state
authorTapani Pälli <tapani.palli@intel.com>
Wed, 2 Dec 2015 11:21:37 +0000 (13:21 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 3 Dec 2015 06:08:07 +0000 (08:08 +0200)
commit231db5869c2c0f32608f39100bffff569da21bea
tree6eb11ac3e0941f649c241921d28cd840c68f878d
parent6c6f28c35e793e098757cfa8fbc860961d52f9e7
i965: use _Shader to get fragment program when updating surface state

Atomic counters and Images were using ctx::Shader that does not take in
to account program pipeline changes, ctx::_Shader must be used for SSO to
work. Commit c0347705 already changed ubo's to use this.

Fixes failures seen with following Piglit test:
arb_separate_shader_object-atomic-counter

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c