[Mesa-dev] [PATCH] r600g/sb: Skip empty ALU clause while scheduling

Glenn Kennard glenn.kennard at gmail.com
Wed Apr 8 02:30:37 PDT 2015


Fixes assert triggered by
ext_transform_feedback-intervening-read output use_gs
piglit test.

Signed-off-by: Glenn Kennard <glenn.kennard at gmail.com>
---
 src/gallium/drivers/r600/sb/sb_sched.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/r600/sb/sb_sched.cpp b/src/gallium/drivers/r600/sb/sb_sched.cpp
index 4248a3f..2e38a62 100644
--- a/src/gallium/drivers/r600/sb/sb_sched.cpp
+++ b/src/gallium/drivers/r600/sb/sb_sched.cpp
@@ -825,6 +825,9 @@ void post_scheduler::init_regmap() {
 
 void post_scheduler::process_alu(container_node *c) {
 
+	if (c->empty())
+		return;
+
 	ucm.clear();
 	alu.reset();
 
-- 
1.9.1



More information about the mesa-dev mailing list