From 38dea8ef35cc2317744481c23e8d108d96746e98 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 19 May 2021 10:38:35 -0700 Subject: [PATCH] iris: Add a comment for iris_uncompiled_shader::nir This would have saved me a few minutes searching around. Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_context.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 0f78e7d82fa..0674044fb6d 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -371,6 +371,11 @@ enum iris_predicate_state { * See iris_compiled_shader, which represents a compiled shader variant. */ struct iris_uncompiled_shader { + /** + * NIR for the shader. + * + * Even for shaders that originate as TGSI, this pointer will be non-NULL. + */ struct nir_shader *nir; struct pipe_stream_output_info stream_output;