Mesa (main): microsoft/compiler: Emit a flat interpolation method for SV_SampleIndex

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 25 20:29:25 UTC 2021


Module: Mesa
Branch: main
Commit: 1aca20be14c421d62b1b43ff3ee1623367b359d0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1aca20be14c421d62b1b43ff3ee1623367b359d0

Author: Michael Tang <tangm at microsoft.com>
Date:   Tue Aug 24 16:53:33 2021 -0700

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 <jenatali at microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12513>

---

 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");



More information about the mesa-commit mailing list