summaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-20 17:05:54 -0700
committerEric Anholt <[email protected]>2017-10-20 17:09:47 -0700
commit07bfdb478bf844a0ac9cf3679f51f83c4abea5a1 (patch)
treeb0fa8cbd31313068bd29b97c020cc8649842455d /src/broadcom
parente5fea0d621af2b14cf6c5e364eeaf293db460f2a (diff)
broadcom/vc5: Propagate vc4 aliasing fix to vc5.
See e5fea0d621af2b14cf6c5e364eeaf293db460f2a
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/compiler/vir_lower_uniforms.c2
1 files changed, 1 insertions, 1 deletions
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);
}