nir: Lower interp_var_at_* like a normal load_var for flat inputs.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Jul 2016 00:42:01 +0000 (17:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 23 Jul 2016 03:31:20 +0000 (20:31 -0700)
commit0ba7288376dc66f932336862c8a6abb629b47686
tree32897a11a2997c672d182798cc9de4a0932679b7
parentf80bea2d8066d228e78a1744d036f69a0265116e
nir: Lower interp_var_at_* like a normal load_var for flat inputs.

"flat centroid" and "flat sample" both just mean "flat", so we should
ignore interpolateAtCentroid/Sample and just return the flat value.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97032
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/compiler/nir/nir_lower_io.c