Lines Matching defs:cache
27 * GLSL shader cache implementation
40 * shader into the cache, and optimisticly return early from glCompileShader
42 * in the hope that the final linked shader will be found in the cache.
43 * If anything goes wrong (shader variant not found, backend cache item is
88 struct disk_cache *cache = ctx->Cache;
89 if (!cache)
129 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size,
135 fprintf(stderr, "putting program metadata in cache: %s\n", sha1_buf);
148 * try to read metadata for them from the cache.
153 struct disk_cache *cache = ctx->Cache;
154 if (!cache)
209 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1);
213 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1,
232 fprintf(stderr, "loading shader program meta data from cache: %s\n",
242 /* Something has gone wrong discard the item from the cache and rebuild
245 assert(!"Invalid GLSL shader disk cache item!");
248 fprintf(stderr, "Error reading program from cache (invalid GLSL "
249 "cache item)\n");
252 disk_cache_remove(cache, prog->data->sha1);
258 /* This is used to flag a shader retrieved from cache */