From 9631d24c3f65269dc8cdfdcddd6a1cd896d70a9d Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 29 Apr 2021 13:48:33 -0700 Subject: [PATCH] compiler: Add Task/Mesh to shader_info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Kenneth Graunke Reviewed-by: Timur Kristóf Part-of: --- 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;