d3d12: Keep access masks up-to-date when removing vars in d3d12_disable_multisampling()

Fixes: e5cf19fced ("d3d12: Modify shaders when MSAA is disabled")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17039>
This commit is contained in:
Boris Brezillon 2022-06-15 08:17:08 -07:00 committed by Marge Bot
parent e1accb1c4c
commit c9b2c79d16

View file

@ -1004,6 +1004,7 @@ d3d12_disable_multisampling(nir_shader *s)
nir_foreach_variable_with_modes_safe(var, s, nir_var_shader_out) {
if (var->data.location == FRAG_RESULT_SAMPLE_MASK) {
exec_node_remove(&var->node);
s->info.outputs_written &= ~(1ull << FRAG_RESULT_SAMPLE_MASK);
progress = true;
}
}