nir: Actually propagate progress in nir_opt_move_load_ubo.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 30 May 2019 20:48:46 +0000 (22:48 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 31 May 2019 07:45:43 +0000 (07:45 +0000)
Found with Jasons new metadata rework (https://gitlab.freedesktop.org/mesa/mesa/merge_requests/950).

Fixes: af355aaa071 "nir: add nir_opt_move_load_ubo() optimization pass"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_move_load_ubo.c

index a32f17044279b51971d850ca9c9116b4becea517..f36a62a5308bb5a4266be68899a869bd80bf4101 100644 (file)
@@ -91,7 +91,7 @@ move_load_ubo(nir_block *block)
       }
    }
 
-   return false;
+   return progress;
 }
 
 bool