diff options
author | Eric Anholt <[email protected]> | 2010-04-26 09:04:16 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-04-27 17:12:38 -0700 |
commit | 891ad6ec1ad71d26e0d06fa620fe392d29de26c9 (patch) | |
tree | 018929eace53b29758a7897e20e8f544b86067d2 /src/mesa/drivers/dri/i915/i915_fragprog.c | |
parent | 20c96759940b0bbe5afdb592cda1c410bfa6e665 (diff) |
i915: Provide counts in the error messages for program limits.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_fragprog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c index 9f12e2c632e..06811c9ece1 100644 --- a/src/mesa/drivers/dri/i915/i915_fragprog.c +++ b/src/mesa/drivers/dri/i915/i915_fragprog.c @@ -359,9 +359,10 @@ upload_program(struct i915_fragment_program *p) } if (program->Base.NumInstructions > I915_MAX_INSN) { - i915_program_error( p, "Exceeded max instructions" ); - return; - } + i915_program_error(p, "Exceeded max instructions (%d out of %d)", + program->Base.NumInstructions, I915_MAX_INSN); + return; + } /* Not always needed: */ |