nir: Store the size of the TCS output patch in nir_shader_info.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
Kenneth Graunke
2015-11-17 14:56:32 -08:00
parent b196f1fff3
commit 2631bfd62c
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -167,6 +167,10 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
shader_prog->TransformFeedback.NumVarying > 0;
switch (stage) {
case MESA_SHADER_TESS_CTRL:
shader->info.tcs.vertices_out = shader_prog->TessCtrl.VerticesOut;
break;
case MESA_SHADER_GEOMETRY:
shader->info.gs.vertices_in = shader_prog->Geom.VerticesIn;
shader->info.gs.output_primitive = sh->Geom.OutputType;
+5
View File
@@ -1544,6 +1544,11 @@ typedef struct nir_shader_info {
struct {
unsigned local_size[3];
} cs;
struct {
/** The number of vertices in the TCS output patch. */
unsigned vertices_out;
} tcs;
};
} nir_shader_info;