I started working on this project some time ago to remove brw_context from the backend compiler. I got a bunch of refactoring done but eventualy got stuck up on shader_time and some debug logging stuff. I've finally gotten around to finishing it and here it is.
Jason Ekstrand (15): i965: Replace some instances of brw->gen with devinfo->gen i965: Plumb compiler debug logging through a function pointer in brw_compiler i965: Remove the dependance on brw_context from the generators i965: Move INTEL_DEBUG variable parsing to screen creation time i965/fs: Make no16 non-variadic i965/fs: Do the no16 perf logging directly in fs_visitor::no16() i965/fs: Plumb compiler debug logging through brw_compiler i965: Add compiler options to brw_compiler i965: Use a single index per shader for shader_time. i965: Pull calls to get_shader_time_index out of the visitor i965/fs: Add a do_rep_send flag to run_fs i965/vs: Pass the current set of clip planes through run() and run_vs() i965/vec4: Turn some _mesa_problem calls into asserts i965/vec4_vs: Add an explicit use_legacy_snorm_formula flag i965: Remove the brw_context from the visitors Kenneth Graunke (1): mesa: Add a va_args variant of _mesa_gl_debug(). src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 3 +- src/mesa/drivers/dri/i965/brw_context.c | 54 ++------- src/mesa/drivers/dri/i965/brw_context.h | 15 +-- src/mesa/drivers/dri/i965/brw_cs.cpp | 17 ++- src/mesa/drivers/dri/i965/brw_fs.cpp | 127 ++++++++------------- src/mesa/drivers/dri/i965/brw_fs.h | 28 +++-- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 21 ++-- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 1 - src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 30 ++--- src/mesa/drivers/dri/i965/brw_program.c | 67 ++++------- src/mesa/drivers/dri/i965/brw_shader.cpp | 100 +++++++++++++++- src/mesa/drivers/dri/i965/brw_shader.h | 13 ++- src/mesa/drivers/dri/i965/brw_vec4.cpp | 49 ++++---- src/mesa/drivers/dri/i965/brw_vec4.h | 23 ++-- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 22 ++-- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 32 ++++-- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h | 5 +- .../drivers/dri/i965/brw_vec4_reg_allocate.cpp | 1 - src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 16 +-- src/mesa/drivers/dri/i965/brw_vec4_vp.cpp | 9 +- src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp | 16 +-- src/mesa/drivers/dri/i965/brw_vs.h | 8 +- src/mesa/drivers/dri/i965/gen6_gs_visitor.h | 7 +- src/mesa/drivers/dri/i965/intel_debug.c | 13 +-- src/mesa/drivers/dri/i965/intel_debug.h | 4 +- src/mesa/drivers/dri/i965/intel_screen.c | 3 + src/mesa/main/errors.c | 29 +++-- src/mesa/main/errors.h | 9 ++ 28 files changed, 379 insertions(+), 343 deletions(-) -- 2.4.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev