glsl: add new interpolateAt* builtin functions
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 10 Nov 2013 06:34:53 +0000 (19:34 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 11 Jul 2014 23:20:02 +0000 (11:20 +1200)
commitb45d4171080b4106aeb97cd449e584ab74a14d65
tree64bcceef21b4dc6b103806c03caca80bb1af5893
parent1d5b06664fdd31a9447a1d10ec0615245aa46563
glsl: add new interpolateAt* builtin functions

V2: - Don't assume everyone wants interpolateAtSample() lowered to
      interpolateAtOffset. It turns out this isn't what we want most
      of the time for i965. Lowering can be added later in an ir pass
      which drivers opt into, rather than bolting it straight into the
      builtin definition.
    - Only expose the interpolateAt* builtins in the fragment language.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/builtin_functions.cpp