From 25448e4b7ebb61cce99236312f13705cc20c1630 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 6 Nov 2016 21:08:24 -0800 Subject: [PATCH] i965: Make ERROR_IF usable from other functions. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2