projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f32ba7a
)
vc4: Take advantage of _mesa_hash_table_remove_key() in the simulator.
author
Eric Anholt
<eric@anholt.net>
Fri, 2 Nov 2018 18:57:14 +0000
(11:57 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 2 Nov 2018 21:26:38 +0000
(14:26 -0700)
src/gallium/drivers/vc4/vc4_simulator.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_simulator.c
b/src/gallium/drivers/vc4/vc4_simulator.c
index 71ac664895b38275764aabdda66ab8243143af2d..53f1fc5ba7e39bd13abdf3cc16110ab1627b9354 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_simulator.c
+++ b/
src/gallium/drivers/vc4/vc4_simulator.c
@@
-173,10
+173,8
@@
vc4_free_simulator_bo(struct vc4_simulator_bo *sim_bo)
mtx_lock(&sim_state.mutex);
u_mmFreeMem(sim_bo->block);
if (sim_bo->handle) {
- struct hash_entry *entry =
- _mesa_hash_table_search(sim_file->bo_map,
- int_to_key(sim_bo->handle));
- _mesa_hash_table_remove(sim_file->bo_map, entry);
+ _mesa_hash_table_remove_key(sim_file->bo_map,
+ int_to_key(sim_bo->handle));
}
mtx_unlock(&sim_state.mutex);
ralloc_free(sim_bo);