[Mesa-dev] [PATCH 05/18] i965: Make ERROR_IF usable from other functions.

Matt Turner mattst88 at gmail.com
Tue Nov 22 19:59:39 UTC 2016


---
 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 fa1d67c..e23f1ec 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.7.3



More information about the mesa-dev mailing list