From 1aca20be14c421d62b1b43ff3ee1623367b359d0 Mon Sep 17 00:00:00 2001 From: Michael Tang Date: Tue, 24 Aug 2021 16:53:33 -0700 Subject: [PATCH] microsoft/compiler: Emit a flat interpolation method for SV_SampleIndex We do not want to set an interpolation method for vertex shader inputs. Reviewed-by: Jesse Natalie Reviewed-by: Erik Faye-Lund Part-of: --- src/microsoft/compiler/dxil_signature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microsoft/compiler/dxil_signature.c b/src/microsoft/compiler/dxil_signature.c index 61f16ba4f7a..ef28efc5174 100644 --- a/src/microsoft/compiler/dxil_signature.c +++ b/src/microsoft/compiler/dxil_signature.c @@ -191,6 +191,7 @@ get_semantic_sv_name(nir_variable *var, struct semantic_info *info, bool _vulkan break; case SYSTEM_VALUE_SAMPLE_ID: info->kind = DXIL_SEM_SAMPLE_INDEX; + info->interpolation = get_interpolation(var); break; default: unreachable("unsupported system value");