i915: Provide counts in the error messages for program limits.

This commit is contained in:
Eric Anholt
2010-04-26 09:04:16 -07:00
parent 20c9675994
commit 891ad6ec1a
2 changed files with 19 additions and 10 deletions

View File

@@ -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:
*/