i965/vs: Don't hardcode DEBUG_VS in generic vec4 code.
authorPaul Berry <stereotype441@gmail.com>
Sat, 23 Mar 2013 04:55:03 +0000 (21:55 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 11 Apr 2013 16:25:26 +0000 (09:25 -0700)
commite9fa3a94486d80da34542cfd24425c208a8d30fe
treec3cda20ac69aa2b9102b83d804a19be558596248
parentdefdb310b76ad30c192a087292e86377f4ea0d83
i965/vs: Don't hardcode DEBUG_VS in generic vec4 code.

Since the vec4_visitor and vec4_generator classes are going to be
re-used for geometry shaders, we can't enable their debug
functionality based on (INTEL_DEBUG & DEBUG_VS) anymore.  Instead, add
a debug_flag boolean to these two classes, so that when they're
instantiated the caller can specify whether debug dumps are needed.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp