Mesa (master): tgsi: Fix error message on invalid swizzle parse

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Fri Jul 23 03:32:33 UTC 2010


Module: Mesa
Branch: master
Commit: e36a08221400af025f1585f4e1ddbd3715810368
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e36a08221400af025f1585f4e1ddbd3715810368

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Thu Jul 15 21:11:24 2010 -0700

tgsi: Fix error message on invalid swizzle parse

---

 src/gallium/auxiliary/tgsi/tgsi_text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 8a9409b..b01d2ff 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -732,7 +732,7 @@ parse_optional_swizzle(
          else if (uprcase( *cur ) == 'W')
             swizzle[i] = TGSI_SWIZZLE_W;
          else {
-	    report_error( ctx, "Expected register swizzle component `x', `y', `z', `w', `0' or `1'" );
+	    report_error( ctx, "Expected register swizzle component `x', `y', `z' or `w'" );
 	    return FALSE;
          }
          cur++;




More information about the mesa-commit mailing list