Skip to content
  • Timothy Arceri's avatar
    util/disk_cache: remove percentage based max cache limit · 2609ac2b
    Timothy Arceri authored and Emil Velikov's avatar Emil Velikov committed
    
    
    The more I think about it the more this seems like a bad idea.
    When we were deleting old cache dirs this wasn't so bad as it
    was unlikely we would ever hit the actual limit before things
    were cleaned up. Now that we only start cleaning up old cache
    items once the limit is reached the a percentage based max
    cache limit is more risky.
    
    For the inital release of shader cache I think its better to
    stick to a more conservative cache limit, at least until we
    have some way of cleaning up the cache more aggressively.
    
    Cc: "17.1" <mesa-stable@lists.freedesktop.org>
    Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
    (cherry picked from commit 22fa3d90)
    2609ac2b