Lionel Landwerlin <lionel.g.landwer...@intel.com> writes:

> Hash maps might use pointer keys (which people surely might want to
> use to hash values) in which case a 0 value is perfectly acceptable.
> It's only if the hash function needs to deference the pointer that we
> want to be sure it's not NULL.
>
> v2: Add assert in _mesa_fnv32_1a_accumulate_block (Ian)

No, a key of NULL is not valid.  That's the marker of entry_is_free().

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to