From 79e5e353e4a49a1be4a451e83f793c1ad3776baf Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Tue, 18 May 2021 11:06:59 -0700 Subject: [PATCH] intel/compiler: Add structs to hold TUE/MUE Used to specify the layout of 'Task URB Entry' and 'Mesh URB Entry'. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_compiler.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 16bce3222e2..268ee5c64b6 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -1418,6 +1418,32 @@ struct brw_clip_prog_data { uint32_t total_grf; }; +struct brw_tue_map { + int32_t start_dw[VARYING_SLOT_MAX]; + + uint32_t size_dw; + + uint32_t per_task_data_start_dw; +}; + +struct brw_mue_map { + int32_t start_dw[VARYING_SLOT_MAX]; + + uint32_t size_dw; + + uint32_t max_primitives; + uint32_t per_primitive_start_dw; + uint32_t per_primitive_header_size_dw; + uint32_t per_primitive_data_size_dw; + uint32_t per_primitive_pitch_dw; + + uint32_t max_vertices; + uint32_t per_vertex_start_dw; + uint32_t per_vertex_header_size_dw; + uint32_t per_vertex_data_size_dw; + uint32_t per_vertex_pitch_dw; +}; + /* brw_any_prog_data is prog_data for any stage that maps to an API stage */ union brw_any_prog_data { struct brw_stage_prog_data base;