nir: Add an internal flag to shader_info

Don't print the shader if it's marked internal, unless NIR_PRINT
has been explicitly set to 2 (or higher).

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6035>
This commit is contained in:
Jesse Natalie
2020-08-26 14:22:07 -07:00
committed by Marge Bot
parent b4a087ce1b
commit 93db59e066
2 changed files with 13 additions and 7 deletions

View File

@@ -98,6 +98,9 @@ typedef struct shader_info {
/* Descriptive name provided by the client; may be NULL */
const char *label;
/* Shader is internal, and should be ignored by things like NIR_PRINT */
bool internal;
/** The shader stage, such as MESA_SHADER_VERTEX. */
gl_shader_stage stage:8;