mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 21:00:29 +01:00
nvk/codegen: Fragment shader builtins are noperspective
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26321>
This commit is contained in:
parent
354cf99869
commit
81387ed131
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue