Mesa (main): compiler: Add Task/Mesh to shader_info

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 28 04:47:08 UTC 2021


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

Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date:   Thu Apr 29 13:48:33 2021 -0700

compiler: Add Task/Mesh to shader_info

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10600>

---

 src/compiler/shader_info.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index b1a5d05b2cd..15a66b0144a 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -458,6 +458,13 @@ typedef struct shader_info {
           */
          uint64_t tcs_cross_invocation_outputs_read;
       } tess;
+
+      /* Applies to MESH. */
+      struct {
+         uint16_t max_vertices_out;
+         uint16_t max_primitives_out;
+         uint16_t primitive_type;  /* GL_POINTS, GL_LINES or GL_TRIANGLES. */
+      } mesh;
    };
 } shader_info;
 



More information about the mesa-commit mailing list