rusticl/platform: add perf debug option

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30324>
This commit is contained in:
Karol Herbst
2024-07-23 13:27:22 +02:00
committed by Marge Bot
parent b3cd3b0ed4
commit aae84eccfa
2 changed files with 32 additions and 0 deletions

View File

@@ -1119,6 +1119,8 @@ Rusticl environment variables
- ``allow_invalid_spirv`` disables validation of any input SPIR-V
- ``clc`` dumps all OpenCL C source being compiled
- ``perf`` prints a warning when hitting slow paths once
- ``perfspam`` same as perf, but doesn't skip same warnings
- ``program`` dumps compilation logs to stderr
- ``sync`` waits on the GPU to complete after every event
- ``validate`` validates any internally generated SPIR-Vs, e.g. through compiling OpenCL C code