Skip to content
Snippets Groups Projects
Commit e5fea0d6 authored by Stefan Schake's avatar Stefan Schake Committed by Emma Anholt
Browse files

broadcom/vc4: Fix aliasing issue

This was causing Android clang version 3.8.256229 to miscompile,
presumably due to strict aliasing.

Fixes: 14dc281c ("vc4: Enforce one-uniform-per-instruction after optimization.")
parent 035ec7a2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment