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

Author: Ian Romanick <[email protected]>
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 <[email protected]>
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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to