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>
(cherry picked from commit c9b2c79d16)
This commit is contained in:
Boris Brezillon 2022-06-15 08:17:08 -07:00 committed by Dylan Baker
parent 191034cd6a
commit aa0a47d14a
2 changed files with 2 additions and 1 deletions

View file

@ -373,7 +373,7 @@
"description": "d3d12: Keep access masks up-to-date when removing vars in d3d12_disable_multisampling()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e5cf19fced6feff07bcd6b288f6370feb21a496f"
},

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;
}
}