From: Matt Turner Date: Mon, 7 Nov 2016 05:08:24 +0000 (-0800) Subject: i965: Make ERROR_IF usable from other functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25448e4b7ebb61cce99236312f13705cc20c1630;p=mesa.git i965: Make ERROR_IF usable from other functions. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_validate.c b/src/mesa/drivers/dri/i965/brw_eu_validate.c index fa1d67c0c0a..e23f1ec1b95 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_validate.c +++ b/src/mesa/drivers/dri/i965/brw_eu_validate.c @@ -50,7 +50,6 @@ cat(struct string *dest, const struct string src) do { \ if (cond) { \ CAT(error_msg, error(msg)); \ - valid = false; \ } \ } while(0) @@ -178,6 +177,7 @@ brw_validate_instructions(const struct brw_codegen *p, int start_offset, if (error_msg.str && annotation) { annotation_insert_error(annotation, src_offset, error_msg.str); } + valid = valid && error_msg.len == 0; free(error_msg.str); }