diff options
author | Francisco Jerez <[email protected]> | 2015-09-05 15:05:48 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-12-09 13:46:05 +0200 |
commit | 09d9638dd04ae7d34d331cb7af0bc5888f48806f (patch) | |
tree | 0bb668c032211e8955edf42fac5cdd1f3e3389fb /src/mesa/drivers/dri/i965/gen7_l3_state.c | |
parent | acc77947ca623472f9c7464553496314b57654ac (diff) |
i965: Add debug flag to print out the new L3 state during transitions.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_l3_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_l3_state.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_l3_state.c b/src/mesa/drivers/dri/i965/gen7_l3_state.c index cacd1aa80fe..79569358914 100644 --- a/src/mesa/drivers/dri/i965/gen7_l3_state.c +++ b/src/mesa/drivers/dri/i965/gen7_l3_state.c @@ -460,6 +460,18 @@ update_urb_size(struct brw_context *brw, const struct brw_l3_config *cfg) } } +/** + * Print out the specified L3 configuration. + */ +static void +dump_l3_config(const struct brw_l3_config *cfg) +{ + fprintf(stderr, "SLM=%d URB=%d ALL=%d DC=%d RO=%d IS=%d C=%d T=%d\n", + cfg->n[L3P_SLM], cfg->n[L3P_URB], cfg->n[L3P_ALL], + cfg->n[L3P_DC], cfg->n[L3P_RO], + cfg->n[L3P_IS], cfg->n[L3P_C], cfg->n[L3P_T]); +} + static void emit_l3_state(struct brw_context *brw) { @@ -489,6 +501,11 @@ emit_l3_state(struct brw_context *brw) setup_l3_config(brw, cfg); update_urb_size(brw, cfg); brw->l3.config = cfg; + + if (unlikely(INTEL_DEBUG & DEBUG_L3)) { + fprintf(stderr, "L3 config transition (%f > %f): ", dw, dw_threshold); + dump_l3_config(cfg); + } } } |