r600g/sb: Skip empty ALU clause while scheduling
authorGlenn Kennard <glenn.kennard@gmail.com>
Wed, 8 Apr 2015 09:30:37 +0000 (11:30 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Apr 2015 02:43:20 +0000 (12:43 +1000)
Fixes assert triggered by
ext_transform_feedback-intervening-read output use_gs
piglit test.

Signed-off-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_sched.cpp

index 4248a3fd30a8e6389fe4e7ad25df72a4de04ece6..2e38a62c05a19f929014f492e8547e33c88b7ed4 100644 (file)
@@ -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();