i965: Make a barycentric_mode() helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Jul 2016 22:00:37 +0000 (15:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jul 2016 00:16:54 +0000 (17:16 -0700)
commiteefbbb943e81b182a1c5ef6cac8425686f5b636c
treea7457904c7a429d7ad31a7ee0d56e7f56b6f026c
parent783511e605160bcfc9132b6fbc83c8816262effd
i965: Make a barycentric_mode() helper function.

This combines two copies of basically the same code.

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