Mesa (master): i965: Print "force dual color blending" in FS recompile debug output.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Jun 14 21:30:24 UTC 2017


Module: Mesa
Branch: master
Commit: 244c2a5d2c862f6cd75f5f4f1eacd7eec719d38a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=244c2a5d2c862f6cd75f5f4f1eacd7eec719d38a

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Jun 14 01:52:04 2017 -0700

i965: Print "force dual color blending" in FS recompile debug output.

I forgot to add this when introducing the new key field.  It doesn't
happen often - just with the Unigine workarounds.  But we may as well
have it, so we get an accurate picture of why recompiles happen.

Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>

---

 src/mesa/drivers/dri/i965/brw_wm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 6fac3c4a84..e09def9d92 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -106,6 +106,9 @@ brw_wm_debug_recompile(struct brw_context *brw, struct gl_program *prog,
                       old_key->alpha_test_func, key->alpha_test_func);
    found |= key_debug(brw, "mrt alpha test reference value",
                       old_key->alpha_test_ref, key->alpha_test_ref);
+   found |= key_debug(brw, "force dual color blending",
+                      old_key->force_dual_color_blend,
+                      key->force_dual_color_blend);
 
    found |= brw_debug_recompile_sampler_key(brw, &old_key->tex, &key->tex);
 




More information about the mesa-commit mailing list