diff options
author | Kenneth Graunke <[email protected]> | 2014-03-21 04:47:32 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-03-23 00:32:53 -0700 |
commit | eabfadf4af2a5edcaad17163fdfaa715b0091804 (patch) | |
tree | acb2ea048cc813679ea9ffc39244cd749d4b522f /src/mesa/drivers | |
parent | 011569b5b74d878fedf3ab07b18a730493468e8f (diff) |
i965: Report the type of color clear in INTEL_DEBUG=blorp.
It's useful to know whether a clear is fast (MCS-based), using the
SIMD16 repdata message, or slow.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 76f82997fbe..3c6c57beda8 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -56,7 +56,6 @@ public: virtual uint32_t get_wm_prog(struct brw_context *brw, brw_blorp_prog_data **prog_data) const; -protected: brw_blorp_const_color_prog_key wm_prog_key; }; @@ -540,7 +539,15 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, } } - DBG("%s to mt %p level %d layer %d\n", __FUNCTION__, + const char *clear_type; + if (is_fast_clear) + clear_type = "fast"; + else if (params.wm_prog_key.use_simd16_replicated_data) + clear_type = "replicated"; + else + clear_type = "slow"; + + DBG("%s (%s) to mt %p level %d layer %d\n", __FUNCTION__, clear_type, irb->mt, irb->mt_level, irb->mt_layer); brw_blorp_exec(brw, ¶ms); |