i965: Remove the emit_linterp() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Jul 2016 00:19:06 +0000 (17:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jul 2016 00:16:54 +0000 (17:16 -0700)
commitf05770121fb165b28b06af9c502dd21300dee530
tree2f98e76b61444bbcb6984d3ce06f3dec4a8aaf2b
parent203243f5ffe438c7f7b5f92d8bc177b76880bf5b
i965: Remove the emit_linterp() helper.

Rather than computing the barycentric mode each time we emit a LINTERP,
we can simply compute it once, as soon as we know we're doing non-flat
interpolation.

At that point, emit_linterp() doesn't do much, so fold it into the
call sites and drop it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h