i965: Drop unused STATE_TEXRECT_SCALE code.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Feb 2017 19:44:26 +0000 (11:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Mar 2017 18:27:36 +0000 (10:27 -0800)
commitf356d053935e81faf91905cf64dbdb91d0bc271d
tree358a9be0f75b07c88cfbc1d913f316b8ac744708
parent4061bbccf2ad81612afbf8c3ded58c3b7146c5b2
i965: Drop unused STATE_TEXRECT_SCALE code.

In the past, we used this on Gen4-5 to transform non-normalized texture
coordinates (for sampler2DRect) to normalized ones.  We also used it on
Gen6-7.5 for sampler2DRect with GL_CLAMP.

Jason dropped this code in 6c8ba59cff14a1a86273f4008ff2a8e68335ab25
in favor of using nir_lower_tex(), which just does a textureSize()
call.  But we were still setting up these state references for
useless uniform data.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program.h