radeonsi: init aco shader info for merged LS/HS
authorQiang Yu <yuq825@gmail.com>
Thu, 6 Jul 2023 07:11:57 +0000 (15:11 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Jul 2023 01:49:21 +0000 (01:49 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24204>

src/gallium/drivers/radeonsi/si_shader_aco.c

index 89965a9..3bd6a33 100644 (file)
@@ -81,6 +81,10 @@ si_fill_aco_shader_info(struct si_shader *shader, struct aco_shader_info *info)
    }
 
    switch (stage) {
+   case MESA_SHADER_TESS_CTRL:
+      info->vs.tcs_in_out_eq = key->ge.opt.same_patch_vertices;
+      info->vs.tcs_temp_only_input_mask = sel->info.tcs_vgpr_only_inputs;
+      break;
    case MESA_SHADER_FRAGMENT:
       info->ps.num_interp = si_get_ps_num_interp(shader);
       info->ps.spi_ps_input = shader->config.spi_ps_input_ena;