Mesa (master): r600/sfn: remove a useless if-condition
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Sep 22 14:37:05 UTC 2020
Module: Mesa
Branch: master
Commit: 1625a9b9ae20c5c037dcae018d7e5dab0bcabdef
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1625a9b9ae20c5c037dcae018d7e5dab0bcabdef
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Tue Sep 22 09:02:08 2020 +0200
r600/sfn: remove a useless if-condition
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6814>
---
src/gallium/drivers/r600/sfn/sfn_nir.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
index d7749431c2e..6150c933ad1 100644
--- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
@@ -787,8 +787,7 @@ int r600_shader_from_nir(struct r600_context *rctx,
* when there are registers, then we can no longer copy propagate, so
* skip the optimization then. (There is probably a better way, but yeah)
*/
- if (true)
- while(optimize_once(sel->nir));
+ while(optimize_once(sel->nir));
NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_in, NULL);
NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_out, NULL);
More information about the mesa-commit
mailing list