Mesa (main): iris: Add a comment for iris_uncompiled_shader::nir

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 28 18:00:25 UTC 2021


Module: Mesa
Branch: main
Commit: 38dea8ef35cc2317744481c23e8d108d96746e98
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=38dea8ef35cc2317744481c23e8d108d96746e98

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed May 19 10:38:35 2021 -0700

iris: Add a comment for iris_uncompiled_shader::nir

This would have saved me a few minutes searching around.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11229>

---

 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;



More information about the mesa-commit mailing list