mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
radv: add gather_shader_info_tes() helper
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18210>
This commit is contained in:
parent
f70a0d12da
commit
4cec1f130b
1 changed files with 10 additions and 4 deletions
|
|
@ -346,6 +346,15 @@ assign_outinfo_params(struct radv_vs_output_info *outinfo, uint64_t mask,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gather_shader_info_tes(const nir_shader *nir, struct radv_shader_info *info)
|
||||
{
|
||||
info->tes._primitive_mode = nir->info.tess._primitive_mode;
|
||||
info->tes.spacing = nir->info.tess.spacing;
|
||||
info->tes.ccw = nir->info.tess.ccw;
|
||||
info->tes.point_mode = nir->info.tess.point_mode;
|
||||
}
|
||||
|
||||
static void
|
||||
gather_shader_info_gs(const nir_shader *nir, struct radv_shader_info *info)
|
||||
{
|
||||
|
|
@ -631,10 +640,7 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n
|
|||
gather_shader_info_gs(nir, info);
|
||||
break;
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
info->tes._primitive_mode = nir->info.tess._primitive_mode;
|
||||
info->tes.spacing = nir->info.tess.spacing;
|
||||
info->tes.ccw = nir->info.tess.ccw;
|
||||
info->tes.point_mode = nir->info.tess.point_mode;
|
||||
gather_shader_info_tes(nir, info);
|
||||
break;
|
||||
case MESA_SHADER_TESS_CTRL:
|
||||
info->tcs.tcs_vertices_out = nir->info.tess.tcs_vertices_out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue