meson: Add build option to specify default shader disk cache max-size
Added an optional 'shader-cache-max-size' build option to meson, which sets default value of max disk cache size for compiled GLSL programs. Can be overriden by 'MESA_GLSL_CACHE_MAX_SIZE' environment variable. Syntax is the same as environment variable has: a number optionally followed by K, M, G to specify a size in kilobytes, megabytes, or gigabytes. By default, gigabytes will be assumed.
Closes: #3572 (closed)
Signed-off-by: Yevhenii Kharchenko yevhenii.kharchenko@globallogic.com
Edited by Yevhenii Kharchenko