enum gl_tess_spacing spacing;
bool ccw;
bool point_mode;
+ bool reads_tess_factors;
unsigned tcs_vertices_out;
uint8_t num_linked_inputs;
uint8_t num_linked_outputs;
info->tes.ccw = nir->info.tess.ccw;
info->tes.point_mode = nir->info.tess.point_mode;
info->tes.tcs_vertices_out = nir->info.tess.tcs_vertices_out;
+ info->tes.reads_tess_factors =
+ !!(nir->info.inputs_read & (VARYING_BIT_TESS_LEVEL_INNER | VARYING_BIT_TESS_LEVEL_OUTER));
if (!info->inputs_linked)
info->tes.num_linked_inputs = util_last_bit64(nir->info.inputs_read);
struct radv_shader_stage *tes_stage = consumer;
tcs_stage->info.has_epilog = false;
- tcs_stage->info.tcs.tes_reads_tess_factors =
- !!(tes_stage->nir->info.inputs_read & (VARYING_BIT_TESS_LEVEL_INNER | VARYING_BIT_TESS_LEVEL_OUTER));
+ tcs_stage->info.tcs.tes_reads_tess_factors = tes_stage->info.tes.reads_tess_factors;
tcs_stage->info.tcs.tes_inputs_read = tes_stage->nir->info.inputs_read;
tcs_stage->info.tcs.tes_patch_inputs_read = tes_stage->nir->info.patch_inputs_read;