Searched refs:cache_item_metadata (Results 1 – 5 of 5) sorted by relevance
244 struct cache_item_metadata *cache_item_metadata) in create_put_job() argument257 if (cache_item_metadata) { in create_put_job()258 dc_job->cache_item_metadata.type = cache_item_metadata->type; in create_put_job()259 if (cache_item_metadata->type == CACHE_ITEM_TYPE_GLSL) { in create_put_job()260 dc_job->cache_item_metadata.num_keys = in create_put_job()261 cache_item_metadata->num_keys; in create_put_job()262 dc_job->cache_item_metadata.keys = (cache_key *) in create_put_job()263 malloc(cache_item_metadata->num_keys * sizeof(cache_key)); in create_put_job()265 if (!dc_job->cache_item_metadata.keys) in create_put_job()268 memcpy(dc_job->cache_item_metadata.keys, in create_put_job()[all …]
64 struct cache_item_metadata { struct207 struct cache_item_metadata *cache_item_metadata);278 struct cache_item_metadata *cache_item_metadata) in disk_cache_put() argument
89 struct cache_item_metadata cache_item_metadata; member
735 ret = write_all(fd, &dc_job->cache_item_metadata.type, in disk_cache_write_item_to_disk()742 if (dc_job->cache_item_metadata.type == CACHE_ITEM_TYPE_GLSL) { in disk_cache_write_item_to_disk()743 ret = write_all(fd, &dc_job->cache_item_metadata.num_keys, in disk_cache_write_item_to_disk()750 ret = write_all(fd, dc_job->cache_item_metadata.keys[0], in disk_cache_write_item_to_disk()751 dc_job->cache_item_metadata.num_keys * in disk_cache_write_item_to_disk()
115 struct cache_item_metadata cache_item_metadata; in shader_cache_write_program_metadata() local116 cache_item_metadata.type = CACHE_ITEM_TYPE_GLSL; in shader_cache_write_program_metadata()117 cache_item_metadata.keys = in shader_cache_write_program_metadata()119 cache_item_metadata.num_keys = prog->NumShaders; in shader_cache_write_program_metadata()121 if (!cache_item_metadata.keys) in shader_cache_write_program_metadata()125 memcpy(cache_item_metadata.keys[i], prog->Shaders[i]->sha1, in shader_cache_write_program_metadata()130 &cache_item_metadata); in shader_cache_write_program_metadata()139 free(cache_item_metadata.keys); in shader_cache_write_program_metadata()