Skip to content

radeonsi: Limit the size of the in-memory shader cache

Axel Davy requested to merge axeldavy/mesa:radeonsi_limit_cache_usage into master

The in-memory shader cache can get significantly huge in some rare cases. Limit its size to 64MB on 32 bits, and 1GB else.

I know the use of the atomics is not perfect and we can get slightly above the limit. If you think it's not ok, I can try to make an improved version.

Merge request reports