From 62a97e87a649d4b64a92782b91a4e8ec4a6548cf Mon Sep 17 00:00:00 2001 From: Aitor Camacho Date: Sat, 15 Nov 2025 16:27:37 +0900 Subject: [PATCH] docs,kk: Add KosmicKrisp environment variable documentation Reviewed-by: Arcady Goldmints-Orlov Signed-off-by: Aitor Camacho Part-of: --- docs/drivers/kosmickrisp.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/drivers/kosmickrisp.rst b/docs/drivers/kosmickrisp.rst index 85967093bfb..39db4c03a05 100644 --- a/docs/drivers/kosmickrisp.rst +++ b/docs/drivers/kosmickrisp.rst @@ -78,6 +78,16 @@ used to create a debug build: meson setup --buildtype=debug -Dplatforms=macos -Dvulkan-drivers=kosmickrisp -Dgallium-drivers= -Dopengl=false -Dzstd=disabled +Environment variables +********************* + +KosmicKrisp specific environment variables: + +- ``MESA_KK_DEBUG``: Set to ``msl`` to log all generated Metal Shading Language (MSL) shaders. +- ``MESA_KK_GPU_CAPTURE``: Starts Metal capture at device create and ends it at device destroy. Set to ``1`` to activate. +- ``MESA_KK_GPU_CAPTURE_DIRECTORY``: Metal capture will be saved to the specified directory. Defaults to Xcode if no path is provided. +- ``MESA_KK_DISABLE_WORKAROUNDS``: Provide ``all`` to disable all workarounds. Otherwise, provide a comma separated list to disable wanted workarounds e.g. ``1,3,4`` to disable workaround 1, 3 and 4. + Metal workarounds *****************