fd: enable prefixing the RD output filename
When using Freedreno's RD output facilities, enable prefixing any output or trigger file with the string specified in the FD_RD_DUMP_TESTNAME environment option. This is similar to how the TESTNAME env can be used with libwrap to provide a more descriptive name for the output RD file. These prefixes can be quite long, e.g. the longest test case name in Vulkan CTS is above 250 characters. For that reason the output name string in the fd_rd_output struct is now allocated on the heap, and any path building using the output name has its on-stack string buffer enlarged. Signed-off-by: Zan Dobersek <zdobersek@igalia.com> Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28442>
This commit is contained in:
@@ -406,7 +406,8 @@ capture from inside Mesa. Different ``FD_RD_DUMP`` options are available:
|
||||
until disabled. Writing 0 (or any other value) will disable dumps.
|
||||
|
||||
Output dump files and trigger file (when enabled) are hard-coded to be placed
|
||||
under ``/tmp``, or ``/data/local/tmp`` under Android.
|
||||
under ``/tmp``, or ``/data/local/tmp`` under Android. `FD_RD_DUMP_TESTNAME` can
|
||||
be used to specify a more descriptive prefix for the output or trigger files.
|
||||
|
||||
Functionality is generic to any Freedreno-based backend, but is currently only
|
||||
integrated in the MSM backend of Turnip. Using the existing ``TU_DEBUG=rd``
|
||||
|
Reference in New Issue
Block a user