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
90 struct disk_cache *cache = ctx->Cache;
91 if (!cache)
131 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size,
137 fprintf(stderr, "putting program metadata in cache: %s\n", sha1_buf);
150 * cached. So don't try to read metadata for them from the cache.
155 struct disk_cache *cache = ctx->Cache;
156 if (!cache)
211 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1);
215 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1,
234 fprintf(stderr, "loading shader program meta data from cache: %s\n",
244 /* Something has gone wrong discard the item from the cache and rebuild
247 assert(!"Invalid GLSL shader disk cache item!");
250 fprintf(stderr, "Error reading program from cache (invalid GLSL "
251 "cache item)\n");
254 disk_cache_remove(cache, prog->data->sha1);
260 /* This is used to flag a shader retrieved from cache */