From 0b59909e78e96f1bd95d63050e988492b40b03ee Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 14 Apr 2012 12:11:29 -0400 Subject: [PATCH] r300/compiler: Exit immediately from rc_vert_fc() if there is an error 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r300/compiler/radeon_vert_fc.c b/src/gallium/drivers/r300/compiler/radeon_vert_fc.c index 3568b238299..be8376e9730 100644 --- a/src/gallium/drivers/r300/compiler/radeon_vert_fc.c +++ b/src/gallium/drivers/r300/compiler/radeon_vert_fc.c @@ -270,5 +270,9 @@ void rc_vert_fc(struct radeon_compiler *c, void *user) } break; } + + if (c->Error) { + return; + } } } -- 2.30.2