nvk/codegen: Fragment shader builtins are noperspective

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26321>
This commit is contained in:
Faith Ekstrand 2023-11-21 11:36:57 -06:00 committed by Marge Bot
parent 354cf99869
commit 81387ed131

View file

@ -71,6 +71,8 @@ find_or_create_input(nir_builder *b, const struct glsl_type *type,
in->data.location = location;
if (glsl_type_is_integer(type))
in->data.interpolation = INTERP_MODE_FLAT;
else
in->data.interpolation = INTERP_MODE_NOPERSPECTIVE;
return in;
}