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@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12513>
This commit is contained in:
Michael Tang
2021-08-24 16:53:33 -07:00
committed by Marge Bot
parent 74a24f4f1c
commit 1aca20be14
+1
View File
@@ -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");