summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorYevhenii Kharchenko <yevhenii.kharchenko@globallogic.com>2020-10-17 23:43:59 +0300
committerMarge Bot <eric+marge@anholt.net>2020-12-02 11:44:34 +0000
commit361d143f941c34aead2bbad8541aa1eca54149ad (patch)
tree2f62d644ecd57c5f56609b7ee99745ebd788c236 /meson_options.txt
parent0546ceba16df527d8fd15c23b6a605ec11c71907 (diff)
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: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3572 Signed-off-by: Yevhenii Kharchenko <yevhenii.kharchenko@globallogic.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: John Bates <jbates@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7217>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 2f40a3dca24..834056041cf 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -195,6 +195,17 @@ option(
description : 'If set to false, the feature is only activated when environment variable MESA_GLSL_CACHE_DISABLE is set to false',
)
option(
+ 'shader-cache-max-size',
+ type : 'string',
+ value : '',
+ description : 'Default value for MESA_GLSL_CACHE_MAX_SIZE enviroment variable.
+ If set, determines the maximum size of the on-disk cache of compiled
+ GLSL programs, can be overriden by enviroment variable if needed. Should be set to a number optionally followed by
+ ``K``, ``M``, or ``G`` to specify a size in kilobytes, megabytes, or
+ gigabytes. By default, gigabytes will be assumed. And if unset, a
+ maximum size of 1GB will be used.'
+)
+option(
'vulkan-icd-dir',
type : 'string',
value : '',