From 5bbcb3f5bc665b99aadb0e289eee646310e307fd Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 11 Jul 2019 08:44:16 +0200 Subject: radv/gfx10: implement support for GS as NGG Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_pipeline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/amd/vulkan/radv_pipeline.c') diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 8417eab41db..5c97aae39a8 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2023,7 +2023,10 @@ static const struct radv_prim_vertex_count prim_size_table[] = { static const struct radv_vs_output_info *get_vs_output_info(const struct radv_pipeline *pipeline) { if (radv_pipeline_has_gs(pipeline)) - return &pipeline->gs_copy_shader->info.vs.outinfo; + if (radv_pipeline_has_ngg(pipeline)) + return &pipeline->shaders[MESA_SHADER_GEOMETRY]->info.vs.outinfo; + else + 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 -- cgit v1.2.3