r600/sfn: remove a useless if-condition
authorGert Wollny <gert.wollny@collabora.com>
Tue, 22 Sep 2020 07:02:08 +0000 (09:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Sep 2020 14:32:45 +0000 (14:32 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6814>

src/gallium/drivers/r600/sfn/sfn_nir.cpp

index d774943..6150c93 100644 (file)
@@ -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);