aco: Enable streamout when TES runs on the HW VS stage.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 6 Mar 2020 11:52:35 +0000 (13:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:11 +0000 (08:34 +0000)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>

src/amd/compiler/aco_instruction_selection.cpp

index 74fd99c..364e04e 100644 (file)
@@ -9596,7 +9596,7 @@ void select_program(Program *program,
       nir_function_impl *func = nir_shader_get_entrypoint(nir);
       visit_cf_list(&ctx, &func->body);
 
-      if (ctx.program->info->so.num_outputs && ctx.stage == vertex_vs)
+      if (ctx.program->info->so.num_outputs && (ctx.stage == vertex_vs || ctx.stage == tess_eval_vs))
          emit_streamout(&ctx, 0);
 
       if (ctx.stage == vertex_vs || ctx.stage == tess_eval_vs) {