i965/fs: Fix INTEL_DEBUG=perf program key printing.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Aug 2012 23:35:35 +0000 (16:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 26 Aug 2012 06:01:50 +0000 (23:01 -0700)
commit98211d5af7efa26c350f6191457ab2564847abde
tree1a7f561885958f51761b402511836b4ef3dacde3
parent174d44a9c4d39a030fe3528acf07f9ac9aa617a1
i965/fs: Fix INTEL_DEBUG=perf program key printing.

When dumping differences in program keys, it printed messages of the
format:

   [Name of thing that changed]  [new]->[old]

This was terribly confusing: the right arrow implies "the value changed
from this to that", when in fact the message conveyed the opposite.

Except that some of the time, it didn't, since we accidentally swapped
the arguments to brw_debug_recompile_sampler_key.  With two swaps, it
would often come out in the expected format.

This patch fixes it to properly print:

   [Name of thing that changed]  [old]->[new]

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm.c