mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01: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>
This commit is contained in:
parent
e1accb1c4c
commit
c9b2c79d16
1 changed files with 1 additions and 0 deletions
|
|
@ -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