From 40541e347995987fecc73a5006d91d1b17d58b74 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 27 Aug 2022 14:44:49 +0800 Subject: [PATCH] docs: document LP_NATIVE_VECTOR_WIDTH GALLIUM_OVERRIDE_CPU_CAPS GALLIUM_NOSSE LP_FORCE_SSE2 Signed-off-by: Yonggang Luo Reviewed-by: Jose Fonseca Part-of: --- docs/drivers/llvmpipe.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/drivers/llvmpipe.rst b/docs/drivers/llvmpipe.rst index fe8a8b1ae83..cc1e1aa2321 100644 --- a/docs/drivers/llvmpipe.rst +++ b/docs/drivers/llvmpipe.rst @@ -87,6 +87,29 @@ To build everything on Linux invoke meson as: Using ----- +Environment variables +~~~~~~~~~~~~~~~~~~~~~ + +``LP_NATIVE_VECTOR_WIDTH`` + We can use it to override vector bits. Because sometimes it turns + out llvmpipe can be fastest by using 128 bit vectors, + yet use AVX instructions. +``GALLIUM_OVERRIDE_CPU_CAPS`` + Override cpu capabilities for llvmpipe and softpipe, possible values for x86: + `nosse` + `sse` + `sse2` + `sse3` + `ssse3` + `sse4.1` + `avx` +``GALLIUM_NOSSE`` + Deprecated in favor of `GALLIUM_OVERRIDE_CPU_CAPS`, + use `GALLIUM_OVERRIDE_CPU_CAPS=nosse` instead. +``LP_FORCE_SSE2`` + Deprecated in favor of `GALLIUM_OVERRIDE_CPU_CAPS` + use `GALLIUM_OVERRIDE_CPU_CAPS=sse2` instead. + Linux ~~~~~