Commit 3923cf62 authored by Eric Anholt's avatar Eric Anholt

v3d: Take advantage of _mesa_hash_table_remove_key() in the simulator.

parent 47586ab5
......@@ -202,10 +202,8 @@ v3d_free_simulator_bo(struct v3d_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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment