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>
This commit is contained in:
@@ -6341,9 +6341,8 @@ brw_compute_barycentric_interp_modes(const struct brw_device_info *devinfo,
|
|||||||
unsigned barycentric_interp_modes = 0;
|
unsigned barycentric_interp_modes = 0;
|
||||||
|
|
||||||
nir_foreach_variable(var, &shader->inputs) {
|
nir_foreach_variable(var, &shader->inputs) {
|
||||||
/* Ignore WPOS and FACE, because they don't require interpolation. */
|
/* Ignore WPOS; it doesn't require interpolation. */
|
||||||
if (var->data.location == VARYING_SLOT_POS ||
|
if (var->data.location == VARYING_SLOT_POS)
|
||||||
var->data.location == VARYING_SLOT_FACE)
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Flat inputs don't need barycentric modes. */
|
/* Flat inputs don't need barycentric modes. */
|
||||||
|
Reference in New Issue
Block a user