diff options
author | Michal Krol <[email protected]> | 2008-07-13 11:43:30 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2008-07-13 13:17:37 +0200 |
commit | cfd2bf9fa127a7f0b1a89650fde34a23f318f90c (patch) | |
tree | 444d9764aad3fed605dc6d9675fdeff73b4eab09 /src | |
parent | 625034104aacaca793ff373414eff4ee53afc1fe (diff) |
tgsi: Fix instruction opcode parsing.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_text.c | 2 |
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 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; } |