From: Michal Krol Date: Sun, 13 Jul 2008 09:43:30 +0000 (+0200) Subject: tgsi: Fix instruction opcode parsing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfd2bf9fa127a7f0b1a89650fde34a23f318f90c;p=mesa.git tgsi: Fix instruction opcode parsing. --- diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_text.c b/src/gallium/auxiliary/tgsi/util/tgsi_text.c index 3415b38f9c6..7848f3d55f2 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; }