Mesa (master): aco: improve assertion at the end of spiller

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 29 18:23:33 UTC 2020


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

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Fri Jan 10 16:16:43 2020 +0000

aco: improve assertion at the end of spiller

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
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);
 }
 
 }



More information about the mesa-commit mailing list