From: Kenneth Graunke Date: Thu, 14 Jul 2016 18:48:01 +0000 (-0700) Subject: i965: Drop VARYING_SLOT_FACE special case in barycentric setup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b94890c19fa82003a03f960d9c3de091756233ac;p=mesa.git 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 Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c907725d5c5..446cf3a2539 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. */