i965: Tidy shader time printing code by using printf's field widths.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Mar 2013 07:18:46 +0000 (00:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 28 Mar 2013 18:46:44 +0000 (11:46 -0700)
commit9fe47756b357c650fd0910496f7c3e6db47ce80c
tree65192d586193de35d64cc0723ffb69925c9eeeeb
parent6192e9b377c6fa4f36da42af6c06ca32b10e7e62
i965: Tidy shader time printing code by using printf's field widths.

We can use %-6s%-6s rather than manually counting characters, resulting
in much more readable code.

This necessitates a small secondary change: using "total fs16" and ""
now causes the "" string to be padded out to 6 characters, resulting in
too much whitespace.  Splitting it into "total" and "fs16" produces the
same output as before.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program.c