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:

committed by
Marge Bot

parent
da47c0ed65
commit
decc040abe
@@ -631,6 +631,8 @@ Intel driver environment variables
|
|||||||
dump shader assembly for vertex shaders
|
dump shader assembly for vertex shaders
|
||||||
``wm``
|
``wm``
|
||||||
dump shader assembly for fragment shaders (same as ``fs``)
|
dump shader assembly for fragment shaders (same as ``fs``)
|
||||||
|
``cl-quiet``
|
||||||
|
quiets the OpenCL warnings recommending use of Intel compute-runtime
|
||||||
|
|
||||||
.. envvar:: INTEL_DECODE
|
.. envvar:: INTEL_DECODE
|
||||||
|
|
||||||
|
@@ -126,7 +126,7 @@ static void
|
|||||||
iris_warn_cl()
|
iris_warn_cl()
|
||||||
{
|
{
|
||||||
static bool warned = false;
|
static bool warned = false;
|
||||||
if (warned)
|
if (warned || INTEL_DEBUG(DEBUG_CL_QUIET))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
warned = true;
|
warned = true;
|
||||||
|
@@ -107,6 +107,7 @@ static const struct debug_control debug_control[] = {
|
|||||||
{ "bat-stats", DEBUG_BATCH_STATS },
|
{ "bat-stats", DEBUG_BATCH_STATS },
|
||||||
{ "reg-pressure", DEBUG_REG_PRESSURE },
|
{ "reg-pressure", DEBUG_REG_PRESSURE },
|
||||||
{ "shader-print", DEBUG_SHADER_PRINT },
|
{ "shader-print", DEBUG_SHADER_PRINT },
|
||||||
|
{ "cl-quiet", DEBUG_CL_QUIET },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -98,6 +98,7 @@ extern uint64_t intel_debug;
|
|||||||
#define DEBUG_BATCH_STATS (1ull << 50)
|
#define DEBUG_BATCH_STATS (1ull << 50)
|
||||||
#define DEBUG_REG_PRESSURE (1ull << 51)
|
#define DEBUG_REG_PRESSURE (1ull << 51)
|
||||||
#define DEBUG_SHADER_PRINT (1ull << 52)
|
#define DEBUG_SHADER_PRINT (1ull << 52)
|
||||||
|
#define DEBUG_CL_QUIET (1ull << 53)
|
||||||
|
|
||||||
#define DEBUG_ANY (~0ull)
|
#define DEBUG_ANY (~0ull)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user