Home
last modified time | relevance | path

Searched refs:snir (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline_cache.c120 struct serialized_nir *snir = in v3dv_pipeline_cache_upload_nir() local
121 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir()
122 memcpy(snir->sha1_key, sha1_key, 20); in v3dv_pipeline_cache_upload_nir()
123 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir()
124 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir()
131 _mesa_sha1_format(sha1buf, snir->sha1_key); in v3dv_pipeline_cache_upload_nir()
137 _mesa_hash_table_insert(cache->nir_cache, snir->sha1_key, snir); in v3dv_pipeline_cache_upload_nir()
158 const struct serialized_nir *snir = NULL; in v3dv_pipeline_cache_search_for_nir() local
164 snir = entry->data; in v3dv_pipeline_cache_search_for_nir()
167 if (snir) { in v3dv_pipeline_cache_search_for_nir()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_pipeline_cache.c783 const struct serialized_nir *snir = NULL; in anv_device_search_for_nir() local
789 snir = entry->data; in anv_device_search_for_nir()
792 if (snir) { in anv_device_search_for_nir()
794 blob_reader_init(&blob, snir->data, snir->size); in anv_device_search_for_nir()
843 struct serialized_nir *snir = in anv_device_upload_nir() local
844 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in anv_device_upload_nir()
845 memcpy(snir->sha1_key, sha1_key, 20); in anv_device_upload_nir()
846 snir->size = blob.size; in anv_device_upload_nir()
847 memcpy(snir->data, blob.data, blob.size); in anv_device_upload_nir()
851 _mesa_hash_table_insert(cache->nir_cache, snir->sha1_key, snir); in anv_device_upload_nir()