#include "ac_nir_to_llvm.h"
struct cache_entry {
- unsigned char sha1[20];
+ union {
+ unsigned char sha1[20];
+ uint32_t sha1_dw[5];
+ };
uint32_t code_size;
struct ac_shader_variant_info variant_info;
struct ac_shader_config config;
struct cache_entry *entry)
{
const uint32_t mask = cache->table_size - 1;
- const uint32_t start = (*(uint32_t *) entry->sha1);
+ const uint32_t start = entry->sha1_dw[0];
/* We'll always be able to insert when we get here. */
assert(cache->kernel_count < cache->table_size / 2);