From 17d69862a9232e2bcdfa032c5a65c27557dd9275 Mon Sep 17 00:00:00 2001 From: Glenn Kennard Date: Wed, 8 Apr 2015 11:30:37 +0200 Subject: [PATCH] r600g/sb: Skip empty ALU clause while scheduling Fixes assert triggered by ext_transform_feedback-intervening-read output use_gs piglit test. Signed-off-by: Glenn Kennard Signed-off-by: Dave Airlie --- 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 4248a3fd30a..2e38a62c05a 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(); -- 2.30.2