mesa: Add hash_table_replace
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 17 Aug 2011 18:51:15 +0000 (11:51 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 4 Oct 2011 19:33:28 +0000 (12:33 -0700)
commitacd834fde2e604173985be5d44cb2cf2b0cd5673
treea2a9237fcaca11ba8dddb7cb836b373eaa87f1a5
parentb7fa0d0727a3a9e1f64d3cfc7a0f157b35dec09e
mesa: Add hash_table_replace

hash_table_replace doesn't use get_node to avoid having to hash the key twice.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/hash_table.c
src/mesa/program/hash_table.h