• Home
  • Raw
  • Download

Lines Matching refs:blob

90 	struct blob blob;  in ir3_disk_cache_init_shader_key()  local
91 blob_init(&blob); in ir3_disk_cache_init_shader_key()
92 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key()
93 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key()
94 blob_finish(&blob); in ir3_disk_cache_init_shader_key()
108 struct blob blob; in compute_variant_key() local
109 blob_init(&blob); in compute_variant_key()
111 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key()
112 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
113 blob_write_uint8(&blob, v->binning_pass); in compute_variant_key()
115 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key()
117 blob_finish(&blob); in compute_variant_key()
121 retrieve_variant(struct blob_reader *blob, struct ir3_shader_variant *v) in retrieve_variant() argument
123 blob_copy_bytes(blob, VARIANT_CACHE_PTR(v), VARIANT_CACHE_SIZE); in retrieve_variant()
130 blob_copy_bytes(blob, v->bin, 4 * v->info.sizedwords); in retrieve_variant()
133 blob_copy_bytes(blob, v->const_state, sizeof(*v->const_state)); in retrieve_variant()
137 blob_copy_bytes(blob, v->const_state->immediates, immeds_sz); in retrieve_variant()
142 store_variant(struct blob *blob, struct ir3_shader_variant *v) in store_variant() argument
144 blob_write_bytes(blob, VARIANT_CACHE_PTR(v), VARIANT_CACHE_SIZE); in store_variant()
150 blob_write_bytes(blob, v->bin, 4 * v->info.sizedwords); in store_variant()
153 blob_write_bytes(blob, v->const_state, sizeof(*v->const_state)); in store_variant()
156 blob_write_bytes(blob, v->const_state->immediates, immeds_sz); in store_variant()
186 struct blob_reader blob; in ir3_disk_cache_retrieve() local
187 blob_reader_init(&blob, buffer, size); in ir3_disk_cache_retrieve()
189 retrieve_variant(&blob, v); in ir3_disk_cache_retrieve()
192 retrieve_variant(&blob, v->binning); in ir3_disk_cache_retrieve()
216 struct blob blob; in ir3_disk_cache_store() local
217 blob_init(&blob); in ir3_disk_cache_store()
219 store_variant(&blob, v); in ir3_disk_cache_store()
222 store_variant(&blob, v->binning); in ir3_disk_cache_store()
224 disk_cache_put(compiler->disk_cache, cache_key, blob.data, blob.size, NULL); in ir3_disk_cache_store()
225 blob_finish(&blob); in ir3_disk_cache_store()