i965: Don't emit SURFACE_STATEs for gather workarounds on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 May 2014 07:06:08 +0000 (00:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Jun 2014 20:29:39 +0000 (13:29 -0700)
commitf6a99d1167b14a3ada7c1d6f41a5cc6f13290e0d
tree80fc11c821f9778476f2bfdebafdc5a57da0cd35
parent2442d3553fc06595c8c324bd50628da54e269364
i965: Don't emit SURFACE_STATEs for gather workarounds on Broadwell.

As far as I can tell, Broadwell doesn't need any of the SURFACE_STATE
workarounds for textureGather() bugs, so there's no need to emit
a second set of identical copies.

To keep things simple, just point the gather surface index base to the
same place as the texture surface index base.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_wm_surface_state.c