summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_sanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c
index 7fc4c29c68..a4edbb6d08 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c
@@ -263,7 +263,7 @@ tgsi_sanity_check(
ctx.errors = 0;
ctx.warnings = 0;
- if (tgsi_iterate_shader( tokens, &ctx.iter ) == -1)
+ if (!tgsi_iterate_shader( tokens, &ctx.iter ))
return FALSE;
return ctx.errors == 0;