aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-11-06 21:08:24 -0800
committerMatt Turner <[email protected]>2017-01-20 11:40:52 -0800
commit25448e4b7ebb61cce99236312f13705cc20c1630 (patch)
tree43eaa0795c8e88e9af48885d5d3d1996994ffb31
parentf9a4fc9b1519337d6f3da9c6cacd20adba5fe081 (diff)
i965: Make ERROR_IF usable from other functions.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_validate.c2
1 files changed, 1 insertions, 1 deletions
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);
}