Mesa (main): d3d12: Fix location compares in MSAA disable
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Feb 4 21:01:14 UTC 2022
Module: Mesa
Branch: main
Commit: 27deedc1048ce7272660c14a1a268a1b0e01eb4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=27deedc1048ce7272660c14a1a268a1b0e01eb4f
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Fri Feb 4 07:33:44 2022 -0800
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 at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14881>
---
src/gallium/drivers/d3d12/d3d12_nir_passes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/d3d12/d3d12_nir_passes.c b/src/gallium/drivers/d3d12/d3d12_nir_passes.c
index 3532a9dcd05..4a8ca704eea 100644
--- a/src/gallium/drivers/d3d12/d3d12_nir_passes.c
+++ b/src/gallium/drivers/d3d12/d3d12_nir_passes.c
@@ -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);
More information about the mesa-commit
mailing list