mesa: Expose GLSL interpolation qualifiers in gl_fragment_program.
authorPaul Berry <stereotype441@gmail.com>
Wed, 26 Oct 2011 01:06:37 +0000 (18:06 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 27 Oct 2011 22:30:58 +0000 (15:30 -0700)
commitcf45949d6a896651a5f3864d3b195e26d59eee74
treebcea46177d6c94002317b3b26371a85df5dcd61f
parent0fbc8d301b66aebb95507d715b3128ff711610fd
mesa: Expose GLSL interpolation qualifiers in gl_fragment_program.

This patch makes GLSL interpolation qualifiers visible to drivers via
the array InterpQualifier[] in gl_fragment_program, so that they can
easily be used by driver back-ends to select the correct interpolation
mode.

Previous to this patch, the GLSL compiler was using the enum
ir_variable_interpolation to represent interpolation types.  Rather
than make a duplicate enum in core mesa to represent the same thing, I
moved the enum into mtypes.h and renamed it to be more consistent with
the other enums defined there.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ast_to_hir.cpp
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_reader.cpp
src/glsl/ir_set_program_inouts.cpp
src/mesa/main/mtypes.h
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp