intel/debug: allow silencing CL warnings

Useful for CI and users previously aware of the warning.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29691>
This commit is contained in:
David Heidelberg
2024-06-09 21:50:32 -07:00
committed by Marge Bot
parent da47c0ed65
commit decc040abe
4 changed files with 5 additions and 1 deletions

View File

@@ -631,6 +631,8 @@ Intel driver environment variables
dump shader assembly for vertex shaders
``wm``
dump shader assembly for fragment shaders (same as ``fs``)
``cl-quiet``
quiets the OpenCL warnings recommending use of Intel compute-runtime
.. envvar:: INTEL_DECODE

View File

@@ -126,7 +126,7 @@ static void
iris_warn_cl()
{
static bool warned = false;
if (warned)
if (warned || INTEL_DEBUG(DEBUG_CL_QUIET))
return;
warned = true;

View File

@@ -107,6 +107,7 @@ static const struct debug_control debug_control[] = {
{ "bat-stats", DEBUG_BATCH_STATS },
{ "reg-pressure", DEBUG_REG_PRESSURE },
{ "shader-print", DEBUG_SHADER_PRINT },
{ "cl-quiet", DEBUG_CL_QUIET },
{ NULL, 0 }
};

View File

@@ -98,6 +98,7 @@ extern uint64_t intel_debug;
#define DEBUG_BATCH_STATS (1ull << 50)
#define DEBUG_REG_PRESSURE (1ull << 51)
#define DEBUG_SHADER_PRINT (1ull << 52)
#define DEBUG_CL_QUIET (1ull << 53)
#define DEBUG_ANY (~0ull)