Skip to content

vkr: use the newer hash_table

Chia-I Wu requested to merge olv/virglrenderer:vkr-hash-table into master

The first 2 commits convert the resource table to use hash_table. The following 3 commits convert the object table. The last 3 commits revert a virglrenderer-specific customization to util_hash_table.

util_hash_table has a comment that says

Just uses the cso_hash for now, but it might be better switch to a linear probing hash table implementation at some point -- as it is said they have better lookup and cache performance and it appears to be possible to write a lock-free implementation of such hash tables .

The newer hash_table uses linear probing. In Mesa, util_hash_table has also become a wrapper of hash_table, although no one cared enough to benchmark.

/cc @zzyiwei @ryanneph

Merge request reports