Module: Mesa Branch: main Commit: 81387ed131cda3d47ecfe0d43cfce431ec6cce61 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81387ed131cda3d47ecfe0d43cfce431ec6cce61
Author: Faith Ekstrand <faith.ekstr...@collabora.com> Date: Tue Nov 21 11:36:57 2023 -0600 nvk/codegen: Fragment shader builtins are noperspective Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26321> --- src/nouveau/vulkan/nvk_codegen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nouveau/vulkan/nvk_codegen.c b/src/nouveau/vulkan/nvk_codegen.c index 39da05be49d..73d363e5ddd 100644 --- a/src/nouveau/vulkan/nvk_codegen.c +++ b/src/nouveau/vulkan/nvk_codegen.c @@ -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; }