i965: Handle default interpolation modes and locations in NIR.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jul 2016 07:47:18 +0000 (00:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jul 2016 00:16:54 +0000 (17:16 -0700)
commit2d6dd30a9b30cbbd12a32122249dbd0963209bf1
tree721a21b677611e9d523311842c9569ff5c3b720c
parent745f5778f3f0faa1fc2eae22edc489811673d70f
i965: Handle default interpolation modes and locations in NIR.

This consolidates a bunch of hacks in a single place - by setting
the interpolation modes and locations on variables appropriately,
we can simply trust them in the rest of the code.  This avoids
having to handle INTERP_QUALIFIER_NONE, gl_Color overrides,
sample-shading overrides, and Gen4-5 centroid-overrides in a bunch
of places.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp