From: Glenn Kennard Date: Wed, 8 Apr 2015 09:30:37 +0000 (+0200) Subject: r600g/sb: Skip empty ALU clause while scheduling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17d69862a9232e2bcdfa032c5a65c27557dd9275;p=mesa.git 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 --- 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();