mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
radv: add gather_shader_info_mesh() 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
4a2ebd6076
commit
f52b0dec3b
1 changed files with 7 additions and 1 deletions
|
|
@ -377,6 +377,12 @@ assign_outinfo_params(struct radv_vs_output_info *outinfo, uint64_t mask,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gather_shader_info_mesh(const nir_shader *nir, struct radv_shader_info *info)
|
||||
{
|
||||
info->ms.output_prim = nir->info.mesh.primitive_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gather_shader_info_fs(const nir_shader *nir, const struct radv_pipeline_key *pipeline_key,
|
||||
struct radv_shader_info *info)
|
||||
|
|
@ -665,7 +671,7 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n
|
|||
case MESA_SHADER_VERTEX:
|
||||
break;
|
||||
case MESA_SHADER_MESH:
|
||||
info->ms.output_prim = nir->info.mesh.primitive_type;
|
||||
gather_shader_info_mesh(nir, info);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue