From: Rhys Perry Date: Fri, 10 Jan 2020 16:16:43 +0000 (+0000) Subject: aco: improve assertion at the end of spiller X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26d2511bcbf1f0e3affe85d42d54b4970c78a7ba;p=mesa.git aco: improve assertion at the end of spiller Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index 4179a775388..99275971048 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -1774,7 +1774,7 @@ void spill(Program* program, live& live_vars, const struct radv_nir_compiler_opt /* update live variable information */ live_vars = live_var_analysis(program, options); - assert(program->num_waves >= 0); + assert(program->num_waves > 0); } }