mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 18:48:28 +02:00
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 commitc9b2c79d16)
This commit is contained in:
parent
191034cd6a
commit
aa0a47d14a
2 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue