radv/gfx10: gather GS output for VS as NGG
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 9 Sep 2019 10:00:50 +0000 (12:00 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Sep 2019 10:08:22 +0000 (12:08 +0200)
For streamout we have to the number of streamout outputs.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader_info.c

index b839d20f1e05ed0500dc9b2f5d326060ffeead7c..e8efbf6778b77c0f5538ad2e8891ba63823c65b9 100644 (file)
@@ -546,6 +546,8 @@ gather_info_output_decl(const nir_shader *nir, const nir_variable *var,
 
                if (key->vs_common_out.as_ls)
                        gather_info_output_decl_ls(nir, var, info);
+               else if (key->vs_common_out.as_ngg)
+                       gather_info_output_decl_gs(nir, var, info);
                break;
        case MESA_SHADER_GEOMETRY:
                vs_info = &info->vs.outinfo;