summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c')
-rw-r--r--lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c b/lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c
index 5629ce044..61dc16915 100644
--- a/lib/mesa/src/gallium/drivers/vc4/vc4_qir_live_variables.c
+++ b/lib/mesa/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) {