intel/compiler: Store the number of position slots in the VUE map

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17602>
This commit is contained in:
Jason Ekstrand
2022-07-18 11:22:54 -05:00
committed by Marge Bot
parent 5937660067
commit f1768f5640
2 changed files with 8 additions and 0 deletions

View File

@@ -1202,6 +1202,12 @@ struct brw_vue_map {
*/
int num_slots;
/**
* Number of position VUE slots. If num_pos_slots > 1, primitive
* replication is being used.
*/
int num_pos_slots;
/**
* Number of per-patch VUE slots. Only valid for tessellation control
* shader outputs and tessellation evaluation shader inputs.

View File

@@ -206,6 +206,7 @@ brw_compute_vue_map(const struct intel_device_info *devinfo,
}
vue_map->num_slots = slot;
vue_map->num_pos_slots = pos_slots;
vue_map->num_per_vertex_slots = 0;
vue_map->num_per_patch_slots = 0;
}
@@ -275,6 +276,7 @@ brw_compute_tess_vue_map(struct brw_vue_map *vue_map,
}
vue_map->num_per_vertex_slots = slot - vue_map->num_per_patch_slots;
vue_map->num_pos_slots = 0;
vue_map->num_slots = slot;
}