brw: store input_vertices on tcs_prog_data

Will allow the driver to know if the vertices count is dynamic.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34109>
This commit is contained in:
Lionel Landwerlin 2025-02-27 10:28:10 +02:00 committed by Marge Bot
parent a9ee498347
commit 7f500cc6e4
2 changed files with 4 additions and 0 deletions

View file

@ -218,6 +218,7 @@ brw_compile_tcs(const struct brw_compiler *compiler,
bool has_primitive_id =
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_PRIMITIVE_ID);
prog_data->input_vertices = key->input_vertices;
prog_data->patch_count_threshold = get_patch_count_threshold(key->input_vertices);
if (compiler->use_tcs_multi_patch) {

View file

@ -1102,6 +1102,9 @@ struct brw_tcs_prog_data
{
struct brw_vue_prog_data base;
/** Number of input vertices, 0 means dynamic */
unsigned input_vertices;
/** Should the non-SINGLE_PATCH payload provide primitive ID? */
bool include_primitive_id;