mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
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:
parent
a9ee498347
commit
7f500cc6e4
2 changed files with 4 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ brw_compile_tcs(const struct brw_compiler *compiler,
|
||||||
bool has_primitive_id =
|
bool has_primitive_id =
|
||||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_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);
|
prog_data->patch_count_threshold = get_patch_count_threshold(key->input_vertices);
|
||||||
|
|
||||||
if (compiler->use_tcs_multi_patch) {
|
if (compiler->use_tcs_multi_patch) {
|
||||||
|
|
|
||||||
|
|
@ -1102,6 +1102,9 @@ struct brw_tcs_prog_data
|
||||||
{
|
{
|
||||||
struct brw_vue_prog_data base;
|
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? */
|
/** Should the non-SINGLE_PATCH payload provide primitive ID? */
|
||||||
bool include_primitive_id;
|
bool include_primitive_id;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue