broadcom/vc5: Propagate vc4 aliasing fix to vc5.
authorEric Anholt <eric@anholt.net>
Sat, 21 Oct 2017 00:05:54 +0000 (17:05 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 21 Oct 2017 00:09:47 +0000 (17:09 -0700)
See e5fea0d621af2b14cf6c5e364eeaf293db460f2a

src/broadcom/compiler/vir_lower_uniforms.c

index b274199..7f3bb84 100644 (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);
 }