util/disk_cache: rename MESA_GLSL_CACHE envvar

Rename MESA_GLSL_CACHE to MESA_SHADER_CACHE, as the on-disk cache can
store not only GLSL but also SPIR-V shaders.

v2:
 - Keep old envvar as deprecated (Mike)

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15390>
This commit is contained in:
Juan A. Suarez Romero
2022-03-14 18:47:37 +01:00
parent 6d7f04e5de
commit 54d0a2cfad
6 changed files with 63 additions and 37 deletions

View File

@@ -212,15 +212,15 @@ option(
'shader-cache-default',
type : 'boolean',
value : true,
description : 'If set to false, the feature is only activated when environment variable MESA_GLSL_CACHE_DISABLE is set to false',
description : 'If set to false, the feature is only activated when environment variable MESA_SHADER_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.
description : '''Default value for MESA_SHADER_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
shader 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.'''