d3d12: Fix location compares in MSAA disable

Locations can only be compared against SYSTEM_VALUE_* if the var
mode is system_value.

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 07:33:44 -08:00
committed by Marge Bot
parent a26f647caa
commit 27deedc104
+1 -1
View File
@@ -1007,7 +1007,7 @@ d3d12_disable_multisampling(nir_shader *s)
progress = true;
}
}
nir_foreach_variable_with_modes_safe(var, s, nir_var_shader_in | nir_var_system_value) {
nir_foreach_variable_with_modes_safe(var, s, nir_var_system_value) {
if (var->data.location == SYSTEM_VALUE_SAMPLE_MASK_IN ||
var->data.location == SYSTEM_VALUE_SAMPLE_ID) {
exec_node_remove(&var->node);