summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-01-05 16:34:58 -0800
committerEric Anholt <eric@anholt.net>2015-01-06 15:41:36 -0800
commit49b5c901e88810946dcbf1a596fbe79c507c3214 (patch)
treed60aa00efb5fde213f310567267a87f70e9df7c4
parentb29540397199f05a3f6ca98be75764d8d32015a7 (diff)
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.
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 0d6f0fa7d60..5a5a5e34bc0 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -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;