nir: Add nir_load_interpolated_input lowering code.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Jul 2016 08:46:53 +0000 (01:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Jul 2016 18:01:00 +0000 (11:01 -0700)
commit707ca00fce464af84212fa1fff573f5814a8c118
treee6137b72e4cea029cc434906470c9a268b256fe7
parent249646247996d9950584bbd34067a27b8b704a6f
nir: Add nir_load_interpolated_input lowering code.

Now nir_lower_io can optionally produce load_interpolated_input
and load_barycentric_* intrinsics for fragment shader inputs.

flat inputs continue using regular load_input.

v2: Use a nir_shader_compiler_options flag rather than ad-hoc boolean
    passing (in response to review feedback from Chris Forbes).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io.c