i965: De-duplicate key_debug() function.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Dec 2015 05:09:40 +0000 (21:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Dec 2015 23:22:58 +0000 (15:22 -0800)
commitb6d4f051a5b2fbead793939cd2e9eb7a83c935ee
treeea3f05ebdfedaef053b39e7492acc5f164b6727e
parent8482763d35d8bbf596a7cce84bb53f4b73d5fa6f
i965: De-duplicate key_debug() function.

This appeared in brw_vs.c and brw_wm.c, should have appeared in
brw_gs.c, and was soon going to have to be in brw_tcs.c and brw_tes.c as
well.

So, instead, move it to a central location (which has to know about both
struct brw_context and perf_debug()).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c