st/nir: Drop setting interp mode on system values in builtins.

It's initialized to INTERP_MODE_NONE on creation, which makes more sense
for sysvals than FLAT, and is also the interp mode that GLSL IR sets up
for sysvals.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7320>
This commit is contained in:
Eric Anholt 2020-10-26 12:16:14 -07:00
parent 9143c08125
commit 61ce544d07

View file

@ -128,7 +128,6 @@ st_nir_make_passthrough_shader(struct st_context *st,
snprintf(var_name, sizeof(var_name), "sys_%u", input_locations[i]);
in = nir_variable_create(b.shader, nir_var_system_value,
glsl_int_type(), var_name);
in->data.interpolation = INTERP_MODE_FLAT;
} else {
snprintf(var_name, sizeof(var_name), "in_%u", input_locations[i]);
in = nir_variable_create(b.shader, nir_var_shader_in, vec4, var_name);