Mesa (master): r300/compiler: fix up error message

Marek Olšák mareko at kemper.freedesktop.org
Fri Apr 22 11:25:45 PDT 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Apr 22 18:54:02 2011 +0200

r300/compiler: fix up error message

---

 .../drivers/dri/r300/compiler/radeon_compiler.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.c b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.c
index 79cd799..b793672 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.c
@@ -483,7 +483,7 @@ void rc_validate_final_shader(struct radeon_compiler *c, void *user)
 {
 	/* Check the number of constants. */
 	if (c->Program.Constants.Count > c->max_constants) {
-		rc_error(c, "Too many constants. Max: 256, Got: %i\n",
-			 c->Program.Constants.Count);
+		rc_error(c, "Too many constants. Max: %i, Got: %i\n",
+			 c->max_constants, c->Program.Constants.Count);
 	}
 }



More information about the mesa-commit mailing list