From: Tom Stellard Date: Sat, 14 Apr 2012 16:11:29 +0000 (-0400) Subject: r300/compiler: Exit immediately from rc_vert_fc() if there is an error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b59909e78e96f1bd95d63050e988492b40b03ee;p=mesa.git 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. --- 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; + } } }