broadcom/vc5: Propagate vc4 aliasing fix to vc5.

See e5fea0d621
This commit is contained in:
Eric Anholt 2017-10-20 17:05:54 -07:00
parent e5fea0d621
commit 07bfdb478b

View file

@ -66,7 +66,7 @@ remove_uniform(struct hash_table *ht, struct qreg reg)
entry = _mesa_hash_table_search(ht, key);
assert(entry);
entry->data--;
entry->data = (void *)(((uintptr_t) entry->data) - 1);
if (entry->data == NULL)
_mesa_hash_table_remove(ht, entry);
}