r300/compiler: Exit immediately from rc_vert_fc() if there is an error
authorTom Stellard <thomas.stellard@amd.com>
Sat, 14 Apr 2012 16:11:29 +0000 (12:11 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 14 Apr 2012 16:11:29 +0000 (12:11 -0400)
This way we correctly report "Too many temporaries" errors.

https://bugs.freedesktop.org/show_bug.cgi?id=48680

Note: This is a candidate for the stable branches.

src/gallium/drivers/r300/compiler/radeon_vert_fc.c

index 3568b23829913dc34c59e56d9dd4b9bbafe07be8..be8376e973023a7cfbdc01d6b1890db742e8f8c2 100644 (file)
@@ -270,5 +270,9 @@ void rc_vert_fc(struct radeon_compiler *c, void *user)
                        }
                        break;
                }
+
+               if (c->Error) {
+                       return;
+               }
        }
 }