summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-05-27 16:06:15 +0200
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-06-28 10:10:35 +0200
commit11528b621ccdfe40b10d3a9841a7f71f3fd6d848 (patch)
treea01d34144d16b3f1d649c50d45cee4ac36753061 /meson_options.txt
parent5582c52a055841637ac58337f0007aa0ea405da9 (diff)
downloadmesa-11528b621ccdfe40b10d3a9841a7f71f3fd6d848.tar.gz
mesa/shaderapi: add an optional shader override mechanism
MESA_SHADER_READ_PATH is handy but it's not usable in all cases. This commit allows to implement an alternative mechanism without assuming too much about how it's done, nor where/how the shaders are stored. When this is enabled MESA_SHADER_DUMP_PATH, MESA_SHADER_CAPTURE_PATH and MESA_GLSL env var handling is disabled. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11621>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 42ea224c95a..9fd9c8a2fd9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -502,3 +502,9 @@ option(
choices : ['auto', 'panfrost', 'intel', 'freedreno'],
description: 'List of Perfetto datasources to build. If this is set to `auto`, datasources that can not be build are skipped. Default: [`auto`]'
)
+option(
+ 'custom-shader-replacement',
+ type : 'string',
+ value : '',
+ description : 'Enable a custom shader replacement mechanism. Note that enabling this option requires adding/generating a shader_replacement.h file that can be included (see shaderapi.c).'
+)