i965: Configure bufmgr debug options from intel_screen.c
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Tue, 6 Oct 2015 23:19:04 +0000 (16:19 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Thu, 8 Oct 2015 19:13:31 +0000 (12:13 -0700)
commit99ca2256c1b8414efd27864bd56f6c95cac55731
tree9c46c69e458003b1bb353e7c3a69d6a51faf404e
parent04158fb0f6e1148fdf155f78147cfc58b5d2b82c
i965: Configure bufmgr debug options from intel_screen.c

We need the debug flag parsing and INTEL_DEBUG in the compiler, but we
don't want the dependency on bufmgr (libdrm_intel) in there. Move to
intel_screen.c.

There are now only two lines left in brw_process_intel_debug_variable(),
but we keep it in intel_debug.h to avoid having to expose
'debug_control' as a global variable.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h
src/mesa/drivers/dri/i965/intel_screen.c