summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_text.c b/src/gallium/auxiliary/tgsi/util/tgsi_text.c
index 3415b38f9c..7848f3d55f 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_text.c
@@ -541,7 +541,7 @@ static boolean parse_instruction( struct translate_ctx *ctx )
if (str_match_no_case( &cur, opcode_info[i].mnemonic )) {
/* TODO: _SAT suffix */
- if (eat_white( &cur )) {
+ if (*cur == '\0' || eat_white( &cur )) {
ctx->cur = cur;
break;
}