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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user