*/
static nir_variable *
-create_input(nir_shader *shader, unsigned drvloc, gl_varying_slot slot)
+create_input(nir_shader *shader, unsigned drvloc, gl_varying_slot slot,
+ enum glsl_interp_mode interpolation)
{
nir_variable *var = rzalloc(shader, nir_variable);
var->name = ralloc_asprintf(var, "in_%d", drvloc);
var->data.index = 0;
var->data.location = slot;
+ var->data.interpolation = interpolation;
exec_list_push_tail(&shader->inputs, &var->node);
else
slot = VARYING_SLOT_BFC1;
- state->colors[i].back = create_input(state->shader, ++maxloc, slot);
+ state->colors[i].back = create_input(
+ state->shader, ++maxloc, slot,
+ state->colors[i].front->data.interpolation);
}
return 0;