i965/fs: Port texture projection avoidance optimization from the old backend.
authorEric Anholt <eric@anholt.net>
Fri, 22 Jul 2011 22:56:46 +0000 (15:56 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Jul 2011 19:17:03 +0000 (12:17 -0700)
commiteb30820f268608cf451da32de69723036dddbc62
treeb199d7f56f5e3931bde03b2facfe97e629617be1
parent652ef8569c923cf8e1e254dddc160c7995d258aa
i965/fs: Port texture projection avoidance optimization from the old backend.

This is part of fixing a ~1% performance regression in OpenArena when
changing the fixed function fragment shader to using the new backend.
Right now this just avoids the LINTERP of the projector, not the math
using it.
src/mesa/drivers/dri/i965/brw_fs.cpp