radv: Add mesh shader specific info.

Use the same old outinfo structure as other NGG shaders.
Additionally, store the output primitive type.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13580>
This commit is contained in:
Timur Kristóf
2021-10-28 16:45:18 +02:00
committed by Marge Bot
parent 32bc466dcb
commit 459b4961bd
3 changed files with 11 additions and 0 deletions

View File

@@ -2349,6 +2349,8 @@ get_vs_output_info(const struct radv_pipeline *pipeline)
return &pipeline->gs_copy_shader->info.vs.outinfo;
else if (radv_pipeline_has_tess(pipeline))
return &pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.tes.outinfo;
else if (radv_pipeline_has_mesh(pipeline))
return &pipeline->shaders[MESA_SHADER_MESH]->info.ms.outinfo;
else
return &pipeline->shaders[MESA_SHADER_VERTEX]->info.vs.outinfo;
}