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 <davyaxel0@gmail.com>
This commit is contained in:
Axel Davy 2018-09-15 13:47:59 +02:00
parent fcbb00a502
commit d9da0a1f6d
1 changed files with 2 additions and 0 deletions

View File

@ -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;