Lines Matching defs:key

292                        struct lima_fs_key *key,
304 for (int i = 0; i < ARRAY_SIZE(key->tex); i++) {
306 tex_options.swizzles[i][j] = key->tex[i].swizzle[j];
345 struct lima_fs_key *key)
354 struct hash_entry *entry = _mesa_hash_table_search(ht, key);
360 lima_fs_disk_cache_retrieve(screen->disk_cache, key);
368 if (!lima_fs_compile_shader(ctx, key, ufs, fs))
371 lima_fs_disk_cache_store(screen->disk_cache, key, fs);
383 memcpy(dup_key, key, key_size);
430 struct lima_fs_key key;
431 memset(&key, 0, sizeof(key));
432 memcpy(key.nir_sha1, so->nir_sha1, sizeof(so->nir_sha1));
433 for (int i = 0; i < ARRAY_SIZE(key.tex); i++) {
435 key.tex[i].swizzle[j] = j;
437 lima_get_compiled_fs(ctx, so, &key);
459 const struct lima_fs_key *key = entry->key;
460 if (!memcmp(key->nir_sha1, so->nir_sha1, sizeof(so->nir_sha1))) {
479 struct lima_vs_key *key,
519 struct lima_vs_key *key)
528 struct hash_entry *entry = _mesa_hash_table_search(ht, key);
534 lima_vs_disk_cache_retrieve(screen->disk_cache, key);
541 if (!lima_vs_compile_shader(ctx, key, uvs, vs))
544 lima_vs_disk_cache_store(screen->disk_cache, key, vs);
555 memcpy(dup_key, key, key_size);
573 struct lima_vs_key *key = &local_key;
574 memset(key, 0, sizeof(*key));
575 memcpy(key->nir_sha1, ctx->uncomp_vs->nir_sha1,
581 key);
603 struct lima_fs_key *key = &local_key;
604 memset(key, 0, sizeof(*key));
605 memcpy(key->nir_sha1, ctx->uncomp_fs->nir_sha1,
613 memcpy(key->tex[i].swizzle, identity, 4);
617 key->tex[i].swizzle[j] = sampler->swizzle[j];
621 for (int i = lima_tex->num_textures; i < ARRAY_SIZE(key->tex); i++)
622 memcpy(key->tex[i].swizzle, identity, 4);
628 key);
677 struct lima_vs_key key;
678 memset(&key, 0, sizeof(key));
679 memcpy(key.nir_sha1, so->nir_sha1, sizeof(so->nir_sha1));
680 lima_get_compiled_vs(ctx, so, &key);
702 const struct lima_vs_key *key = entry->key;
703 if (!memcmp(key->nir_sha1, so->nir_sha1, sizeof(so->nir_sha1))) {
721 lima_fs_cache_hash(const void *key)
723 return _mesa_hash_data(key, sizeof(struct lima_fs_key));
727 lima_vs_cache_hash(const void *key)
729 return _mesa_hash_data(key, sizeof(struct lima_vs_key));