mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
intel/compiler: Track primitive id in domain/evaluation shader
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Suggeted-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13474>
This commit is contained in:
parent
2b86cf2850
commit
3f33222426
2 changed files with 4 additions and 0 deletions
|
|
@ -1332,6 +1332,7 @@ struct brw_tes_prog_data
|
|||
enum brw_tess_partitioning partitioning;
|
||||
enum brw_tess_output_topology output_topology;
|
||||
enum brw_tess_domain domain;
|
||||
bool include_primitive_id;
|
||||
};
|
||||
|
||||
struct brw_gs_prog_data
|
||||
|
|
|
|||
|
|
@ -1374,6 +1374,9 @@ brw_compile_tes(const struct brw_compiler *compiler,
|
|||
((1 << nir->info.cull_distance_array_size) - 1) <<
|
||||
nir->info.clip_distance_array_size;
|
||||
|
||||
prog_data->include_primitive_id =
|
||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_PRIMITIVE_ID);
|
||||
|
||||
/* URB entry sizes are stored as a multiple of 64 bytes. */
|
||||
prog_data->base.urb_entry_size = ALIGN(output_size_bytes, 64) / 64;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue