rusticl/program: add debug option to validate internal spirvs

Sometimes it's useful to validate SPIR-Vs we generate just to make sure
they are valid.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27204>
This commit is contained in:
Karol Herbst
2023-11-13 11:19:44 +01:00
committed by Marge Bot
parent 6e70699e24
commit 459b522251
4 changed files with 37 additions and 6 deletions
+1
View File
@@ -1064,6 +1064,7 @@ Rusticl environment variables
- ``clc`` dumps all OpenCL C source being compiled
- ``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
.. _clc-env-var: