d3d12: Don't force a GS to be added for 'flat' sysvals

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14881>
This commit is contained in:
Jesse Natalie
2022-02-04 08:23:42 -08:00
committed by Marge Bot
parent 3feae7ec5d
commit 1b11113efa
+4 -1
View File
@@ -475,7 +475,10 @@ has_flat_varyings(struct d3d12_context *ctx)
nir_foreach_variable_with_modes(input, fs->current->nir,
nir_var_shader_in) {
if (input->data.interpolation == INTERP_MODE_FLAT)
if (input->data.interpolation == INTERP_MODE_FLAT &&
/* Disregard sysvals */
(input->data.location >= VARYING_SLOT_VAR0 ||
input->data.location <= VARYING_SLOT_TEX7))
return true;
}