[Mesa-dev] [PATCH 1/3] r600/sb: Fix broken assert

Chris Forbes chrisf at ijw.co.nz
Sat Nov 16 18:00:17 PST 2013


This would never fire.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 src/gallium/drivers/r600/sb/sb_sched.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/sb/sb_sched.cpp b/src/gallium/drivers/r600/sb/sb_sched.cpp
index 2792315..1413916 100644
--- a/src/gallium/drivers/r600/sb/sb_sched.cpp
+++ b/src/gallium/drivers/r600/sb/sb_sched.cpp
@@ -527,7 +527,7 @@ bool alu_group_tracker::try_reserve(alu_node* n) {
 				forced_swz_slots |= (1 << i);
 				a->bc.bank_swizzle = VEC_210;
 				if (!gpr.try_reserve(a))
-					assert("!internal reservation error");
+					assert(!"internal reservation error");
 			} else {
 				if (first_nf == ~0)
 					first_nf = i;
-- 
1.8.4.2



More information about the mesa-dev mailing list