diff options
author | Eric Anholt <[email protected]> | 2013-02-22 13:15:20 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-03-05 14:25:00 -0800 |
commit | 14cec07177f438717cc6fb9252525e16d6b3d8dd (patch) | |
tree | ef3f489d5391a0a861a47e4ed60f976d8d94cff0 /src/mesa/drivers/dri/i965/brw_vec4.cpp | |
parent | 0a1c6bcfb0ecca2ad7d3e1ecaa2c2f49b2a5a50c (diff) |
i965: Make perf_debug() output to GL_ARB_debug_output in a debug context.
I tried to ensure that performance in the non-debug case doesn't change
(we still just check one condition up front), and I think the impact is
small enough in the debug context case to warrant including all of it.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 8182dccb02f..f319f32c2cc 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -1350,7 +1350,7 @@ brw_vs_emit(struct brw_context *brw, bool start_busy = false; float start_time = 0; - if (unlikely(INTEL_DEBUG & DEBUG_PERF)) { + if (unlikely(intel->perf_debug)) { start_busy = (intel->batch.last_bo && drm_intel_bo_busy(intel->batch.last_bo)); start_time = get_time(); @@ -1383,7 +1383,7 @@ brw_vs_emit(struct brw_context *brw, const unsigned *generated =g.generate_assembly(&v.instructions, final_assembly_size); - if (unlikely(INTEL_DEBUG & DEBUG_PERF) && shader) { + if (unlikely(intel->perf_debug) && shader) { if (shader->compiled_once) { brw_vs_debug_recompile(brw, prog, &c->key); } |