vc4: Fix deletion from the program cache.

They key is, oddly enough, in the key field, not in the data field (which
is the vc4_compiled_shader *).  Fixes regular failures in fp-long-alu.
This commit is contained in:
Eric Anholt
2015-01-05 16:34:58 -08:00
parent b295403971
commit 49b5c901e8
+1 -1
View File
@@ -2490,7 +2490,7 @@ delete_from_cache_if_matches(struct hash_table *ht,
struct hash_entry *entry,
struct vc4_uncompiled_shader *so)
{
struct vc4_key *key = entry->data;
const struct vc4_key *key = entry->key;
if (key->shader_state == so) {
struct vc4_compiled_shader *shader = entry->data;