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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user