diff options
author | Eric Anholt <[email protected]> | 2013-05-30 14:53:55 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-06-26 01:07:11 -0700 |
commit | a2ca98b211138e2e4ac906cacefe02b4e064e01c (patch) | |
tree | e9532258c7c7a3c4b51015ab2e00f7bd971e8de7 /src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | |
parent | da00782ed81776473270028cda262c913d737438 (diff) |
i965: Add debug to INTEL_DEBUG=blorp describing hiz/blit/clear ops.
I think we've all added instrumentation at one point or another to see
what's being called in blorp. Now you can quickly get output like:
Testing glCopyPixels(depth).
intel_hiz_exec depth clear to mt 0x16d9160 level 0 layer 0
intel_hiz_exec depth resolve to mt 0x16d9160 level 0 layer 0
intel_hiz_exec hiz ambiguate to mt 0x16d9160 level 0 layer 0
intel_hiz_exec depth resolve to mt 0x16d9160 level 0 layer 0
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp_clear.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 85449bdda09..f925ab32d1e 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -37,6 +37,8 @@ extern "C" { #include "brw_eu.h" #include "brw_state.h" +#define FILE_DEBUG_FLAG DEBUG_BLORP + struct brw_blorp_const_color_prog_key { bool use_simd16_replicated_data; @@ -489,6 +491,9 @@ brw_blorp_clear_color(struct intel_context *intel, struct gl_framebuffer *fb, } } + DBG("%s to mt %p level %d layer %d\n", __FUNCTION__, + irb->mt, irb->mt_level, irb->mt_layer); + brw_blorp_exec(intel, ¶ms); if (is_fast_clear) { @@ -508,6 +513,8 @@ brw_blorp_resolve_color(struct intel_context *intel, struct intel_mipmap_tree *m { struct brw_context *brw = brw_context(&intel->ctx); + DBG("%s to mt %p\n", __FUNCTION__, mt); + brw_blorp_rt_resolve_params params(brw, mt); brw_blorp_exec(intel, ¶ms); mt->mcs_state = INTEL_MCS_STATE_RESOLVED; |