nvk/codegen: Fragment shader builtins are noperspective
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26321>
This commit is contained in:
committed by
Marge Bot
parent
354cf99869
commit
81387ed131
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user