Lines Matching refs: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)
118 disk_cache_put_key(cache, prog->Shaders[i]->sha1);
127 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size,
132 fprintf(stderr, "putting program metadata in cache: %s\n", sha1_buf);
145 * try to read metadata for them from the cache.
150 struct disk_cache *cache = ctx->Cache;
151 if (!cache)
201 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1);
205 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1,
224 fprintf(stderr, "loading shader program meta data from cache: %s\n",
234 /* Something has gone wrong discard the item from the cache and rebuild
237 assert(!"Invalid GLSL shader disk cache item!");
240 fprintf(stderr, "Error reading program from cache (invalid GLSL "
241 "cache item)\n");
244 disk_cache_remove(cache, prog->data->sha1);
250 /* This is used to flag a shader retrieved from cache */
262 disk_cache_put_key(cache, prog->Shaders[i]->sha1);