Module: Mesa
Branch: master
Commit: 26d2511bcbf1f0e3affe85d42d54b4970c78a7ba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=26d2511bcbf1f0e3affe85d42d54b4970c78a7ba

Author: Rhys Perry <[email protected]>
Date:   Fri Jan 10 16:16:43 2020 +0000

aco: improve assertion at the end of spiller

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3257>

---

 src/amd/compiler/aco_spill.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
 
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to