diff options
author | Anthony Pesch <[email protected]> | 2020-01-16 09:11:16 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 17:06:57 +0000 |
commit | f77369086ced2a76dd33358d28b7bb0706b1157f (patch) | |
tree | a7e7477886a87964f32bac39012cc22dd97df076 /src/gallium/drivers/vc4 | |
parent | 1496cc92f6f743f10e1f3c9c63787d79febfda40 (diff) |
util/hash_table: update users to use new optimal integer hash functions
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir_live_variables.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir_live_variables.c b/src/gallium/drivers/vc4/vc4_qir_live_variables.c index 5629ce044d9..61dc16915b7 100644 --- a/src/gallium/drivers/vc4/vc4_qir_live_variables.c +++ b/src/gallium/drivers/vc4/vc4_qir_live_variables.c @@ -34,18 +34,6 @@ struct partial_update_state { uint8_t channels; }; -static uint32_t -int_hash(const void *key) -{ - return _mesa_hash_data(key, sizeof(int)); -} - -static bool -int_compare(const void *key1, const void *key2) -{ - return *(const int *)key1 == *(const int *)key2; -} - static int qir_reg_to_var(struct qreg reg) { @@ -194,7 +182,7 @@ static void qir_setup_def_use(struct vc4_compile *c) { struct hash_table *partial_update_ht = - _mesa_hash_table_create(c, int_hash, int_compare); + _mesa_hash_table_create(c, _mesa_hash_int, _mesa_key_int_equal); int ip = 0; qir_for_each_block(block, c) { |