[Mesa-dev] RFC: vega handle rework

Henri Verbeet hverbeet at gmail.com
Sun Jan 23 10:40:22 PST 2011

On 23 January 2011 18:20, Brian Paul <brianp at vmware.com> wrote:
> The vega state tracker casts back and forth between pointers and the handle
> types (VGHandle, VGPath, VGImage, etc).  Since handles are always 32-bit
> VGuints, casting like this doesn't work with 64-bit pointers.
> This patch series implementes a pointer/handle mapping mechanism with a hash
> table.
> If there's no concerns I'll commit in a day or two.
Is handle.c missing from patch 3? Without having seen the code though,
I wonder if a hash table isn't a bit overkill. I think the typical way
to implement handle tables is to just use an array + free list.

More information about the mesa-dev mailing list