mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
9143c08125
commit
61ce544d07
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue