From 81387ed131cda3d47ecfe0d43cfce431ec6cce61 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 21 Nov 2023 11:36:57 -0600 Subject: [PATCH] nvk/codegen: Fragment shader builtins are noperspective Part-of: --- 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; }