From 07bfdb478bf844a0ac9cf3679f51f83c4abea5a1 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 20 Oct 2017 17:05:54 -0700 Subject: broadcom/vc5: Propagate vc4 aliasing fix to vc5. See e5fea0d621af2b14cf6c5e364eeaf293db460f2a --- src/broadcom/compiler/vir_lower_uniforms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/compiler/vir_lower_uniforms.c b/src/broadcom/compiler/vir_lower_uniforms.c index b2741994a2d..7f3bb8460e1 100644 --- a/src/broadcom/compiler/vir_lower_uniforms.c +++ b/src/broadcom/compiler/vir_lower_uniforms.c @@ -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); } -- cgit v1.2.3