This shouldn't be scanned in the pipeline.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
16 + tf_offset, 1, 0, true, false);
//store to offchip for TES to read - only if TES reads them
- if (ctx->options->key.tcs.tes_reads_tess_factors) {
+ if (ctx->shader_info->info.tes.reads_tess_factors) {
LLVMValueRef inner_vec, outer_vec, tf_outer_offset;
LLVMValueRef tf_inner_offset;
unsigned param_outer, param_inner;
struct ac_vs_variant_key vs_key;
unsigned primitive_mode;
unsigned input_vertices;
- uint32_t tes_reads_tess_factors:1;
};
struct ac_fs_variant_key {
mark_sampler_desc(instr->variables[0]->var, info);
break;
}
+ case nir_intrinsic_load_tess_level_inner:
+ case nir_intrinsic_load_tess_level_outer:
+ info->tes.reads_tess_factors = true;
+ break;
default:
break;
}
bool uses_thread_id[3];
bool uses_local_invocation_idx;
} cs;
+ struct {
+ bool reads_tess_factors;
+ } tes;
};
/* A NIR pass to gather all the info needed to optimise the allocation patterns
keys[MESA_SHADER_VERTEX].vs.as_ls = true;
keys[MESA_SHADER_TESS_CTRL].tcs.input_vertices = key->tess_input_vertices;
keys[MESA_SHADER_TESS_CTRL].tcs.primitive_mode = nir[MESA_SHADER_TESS_EVAL]->info.tess.primitive_mode;
-
- keys[MESA_SHADER_TESS_CTRL].tcs.tes_reads_tess_factors = !!(nir[MESA_SHADER_TESS_EVAL]->info.inputs_read & (VARYING_BIT_TESS_LEVEL_INNER | VARYING_BIT_TESS_LEVEL_OUTER));
}
if (nir[MESA_SHADER_GEOMETRY]) {