From 26d6f506a44aa9f004781b0ec988471032d80841 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 7 Nov 2022 20:35:31 +0100 Subject: [PATCH] docs/asahi: use console blocks for console commands Reviewed-by: David Heidelberg Part-of: --- docs/drivers/asahi.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/drivers/asahi.rst b/docs/drivers/asahi.rst index 02225621c37..6f0633ab933 100644 --- a/docs/drivers/asahi.rst +++ b/docs/drivers/asahi.rst @@ -291,11 +291,15 @@ useful for exercising the compiler. To build, use options: Then run an OpenGL workload with environment variable: +.. code-block:: console + LD_PRELOAD=~/mesa/build/src/asahi/drm-shim/libasahi_noop_drm_shim.so For example to compile a shader with shaderdb and print some statistics along with the IR: +.. code-block:: console + ~/shader-db$ AGX_MESA_DEBUG=shaders,shaderdb ASAHI_MESA_DEBUG=precompile LIBGL_DRIVERS_PATH=~/lib/dri/ LD_PRELOAD=~/mesa/build/src/asahi/drm-shim/libasahi_noop_drm_shim.so ./run shaders/glmark/1-12.shader_test The drm-shim implementation for Asahi is located in ``src/asahi/drm-shim``. The