From: Axel Davy Date: Sat, 15 Sep 2018 11:47:59 +0000 (+0200) Subject: st/nine: Add ff key hash to help debug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9da0a1f6d480ebdb4ef9635c93efbb977f7d464;p=mesa.git st/nine: Add ff key hash to help debug This is very useful to find in the log the ff shader shource of a given call. Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 58cc29b5e30..e5b0c3e1258 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -1683,6 +1683,7 @@ nine_ff_get_vs(struct NineDevice9 *device) key.tc_dim_output |= dim << (s * 3); } + DBG("VS ff key hash: %x\n", nine_ff_vs_key_hash(&key)); vs = util_hash_table_get(device->ff.ht_vs, &key); if (vs) return vs; @@ -1836,6 +1837,7 @@ nine_ff_get_ps(struct NineDevice9 *device) !(projection_matrix->_34 == 0.0f && projection_matrix->_44 == 1.0f); + DBG("PS ff key hash: %x\n", nine_ff_ps_key_hash(&key)); ps = util_hash_table_get(device->ff.ht_ps, &key); if (ps) return ps;