Lines Matching refs:sha1
98 static const char zero[sizeof(prog->data->sha1)] = {0}; in shader_cache_write_program_metadata()
99 if (memcmp(prog->data->sha1, zero, sizeof(prog->data->sha1)) == 0) in shader_cache_write_program_metadata()
118 disk_cache_put_key(cache, prog->Shaders[i]->sha1); in shader_cache_write_program_metadata()
119 memcpy(cache_item_metadata.keys[i], prog->Shaders[i]->sha1, in shader_cache_write_program_metadata()
122 _mesa_sha1_format(sha1_buf, prog->Shaders[i]->sha1); in shader_cache_write_program_metadata()
127 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size, in shader_cache_write_program_metadata()
131 _mesa_sha1_format(sha1_buf, prog->data->sha1); in shader_cache_write_program_metadata()
197 _mesa_sha1_format(sha1buf, sh->sha1); in shader_cache_read_program_metadata()
201 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1); in shader_cache_read_program_metadata()
205 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1, in shader_cache_read_program_metadata()
223 _mesa_sha1_format(sha1buf, prog->data->sha1); in shader_cache_read_program_metadata()
244 disk_cache_remove(cache, prog->data->sha1); in shader_cache_read_program_metadata()
262 disk_cache_put_key(cache, prog->Shaders[i]->sha1); in shader_cache_read_program_metadata()
264 _mesa_sha1_format(sha1_buf, prog->Shaders[i]->sha1); in shader_cache_read_program_metadata()