Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3829>
static void *cso_data_allocate_node(struct cso_hash_data *hash)
{
- return MALLOC(hash->nodeSize);
+ return MALLOC(sizeof(struct cso_node));
}
static void cso_free_node(struct cso_node *node)
hash->data.d->fakeNext = 0;
hash->data.d->buckets = 0;
hash->data.d->size = 0;
- hash->data.d->nodeSize = sizeof(struct cso_node);
hash->data.d->userNumBits = (short)MinNumBits;
hash->data.d->numBits = 0;
hash->data.d->numBuckets = 0;
struct cso_node *fakeNext;
struct cso_node **buckets;
int size;
- int nodeSize;
short userNumBits;
short numBits;
int numBuckets;