diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-07-14 11:48:01 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-07-17 19:26:53 -0700 |
commit | b94890c19fa82003a03f960d9c3de091756233ac (patch) | |
tree | a95f2cb48570d003968cfc0a72e5b620f2a4d8ee /src/mesa/drivers | |
parent | ac1181ffbef5250cb3b651e047cce5116727c34c (diff) | |
download | external_mesa3d-b94890c19fa82003a03f960d9c3de091756233ac.tar.gz external_mesa3d-b94890c19fa82003a03f960d9c3de091756233ac.tar.bz2 external_mesa3d-b94890c19fa82003a03f960d9c3de091756233ac.zip |
i965: Drop VARYING_SLOT_FACE special case in barycentric setup.
glsl_to_nir always produces a system value for gl_FrontFacing, rather
than an input. So there should never be an input with this slot,
making this code dead.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c907725d5c..446cf3a253 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -6341,9 +6341,8 @@ brw_compute_barycentric_interp_modes(const struct brw_device_info *devinfo, unsigned barycentric_interp_modes = 0; nir_foreach_variable(var, &shader->inputs) { - /* Ignore WPOS and FACE, because they don't require interpolation. */ - if (var->data.location == VARYING_SLOT_POS || - var->data.location == VARYING_SLOT_FACE) + /* Ignore WPOS; it doesn't require interpolation. */ + if (var->data.location == VARYING_SLOT_POS) continue; /* Flat inputs don't need barycentric modes. */ |