diff options
| author | Dhruv Mark Collins <mark@igalia.com> | 2025-09-25 18:36:56 +0000 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-10-07 16:13:33 +0000 |
| commit | 4e762df66436d64090e9356a1a7078aa3c7b9a1e (patch) | |
| tree | f1870d683854918e62a539e160a6f0c491105616 /docs | |
| parent | c473b0b551269f86ed509d7f759f3a2d8f6be81a (diff) | |
tu/util: Allow setting all TU_DEBUG options from envvar and file
Due to the division of TU_DEBUG options into runtime and envvar
options, it limited where options could be set from when
TU_DEBUG_FILE was being used. This commit addresses that by allowing
the envvar to set runtime debug options even when TU_DEBUG_FILE is
active while also allowing the file to set non-runtime options if
the file included them at startup.
Signed-off-by: Dhruv Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37580>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/drivers/freedreno.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/drivers/freedreno.rst b/docs/drivers/freedreno.rst index fb3e30909a5..0c404b38dfc 100644 --- a/docs/drivers/freedreno.rst +++ b/docs/drivers/freedreno.rst @@ -648,8 +648,9 @@ Runtime toggling of ``TU_DEBUG`` options In some cases, it is useful to toggle ``TU_DEBUG`` options at runtime, such as when assessing the performance impact of a particular option. This can be done by setting the ``TU_DEBUG_FILE`` environment variable to a file path, and writing -the desired ``TU_DEBUG`` options to that file. The driver will check the file for -changes and apply them. +the desired ``TU_DEBUG`` options to that file. The driver will check the file at +startup and apply all debug options (runtime and non-runtime) but then will +continue to monitor the file for changes and only apply runtime options. The folder containing the file should exist prior to running the application, and deleting the folder during runtime will result in the driver no longer picking up |