Home
last modified time | relevance | path

Searched refs:cache_item_metadata (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/util/
Ddisk_cache.c244 struct cache_item_metadata *cache_item_metadata) in create_put_job() argument
257 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 …]
Ddisk_cache.h64 struct cache_item_metadata { struct
207 struct cache_item_metadata *cache_item_metadata);
278 struct cache_item_metadata *cache_item_metadata) in disk_cache_put() argument
Ddisk_cache_os.h89 struct cache_item_metadata cache_item_metadata; member
Ddisk_cache_os.c735 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()
/external/mesa3d/src/compiler/glsl/
Dshader_cache.cpp115 struct cache_item_metadata cache_item_metadata; in shader_cache_write_program_metadata() local
116 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()