Re: [Mesa-dev] Low-level infrastructure for the shader cache

2015-02-05 Thread Carl Worth
On Wed, Feb 04 2015, Carl Worth wrote: > First, when mapping the index file: > >/* FIXME: We map this shared, which is a start, but we need to think about > * how to make it multi-process safe. */ >cache->index = (unsigned char *) > mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHA

[Mesa-dev] Low-level infrastructure for the shader cache

2015-02-04 Thread Carl Worth
Hi folks, This series adds a layer of code to store a cache of objects on disk. Thanks to Kristian Høgsberg for the initial proof-of-concept implementation here. I've take his original code and added my own cleanups and documentation to the cache API. I've also fixed up a couple of the items he ha