r300/compiler: fix up error message
authorMarek Olšák <maraeo@gmail.com>
Fri, 22 Apr 2011 16:54:02 +0000 (18:54 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 22 Apr 2011 18:25:24 +0000 (20:25 +0200)
src/mesa/drivers/dri/r300/compiler/radeon_compiler.c

index 79cd799..b793672 100644 (file)
@@ -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);
        }
 }