glsl: add ir_variable::determine_interpolation_mode() function.
authorPaul Berry <stereotype441@gmail.com>
Fri, 21 Oct 2011 14:55:48 +0000 (07:55 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 27 Oct 2011 22:31:32 +0000 (15:31 -0700)
commitbaf7f99fd7a092a1390b7a145e09caa5325a8116
treefc8bea32687da29cacf8ec581e69446bf67bfcfd
parentc488150dea083a9677429b4185c6b20d7facd52b
glsl: add ir_variable::determine_interpolation_mode() function.

This function determines how a variable should be interpolated based
both on interpolation qualifiers and the current shade model.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir.cpp
src/glsl/ir.h