radv/llvm: prevent emitting streamout outputs for NGG

They are directly emitted from NIR.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19317>
This commit is contained in:
Samuel Pitoiset
2022-10-25 12:03:18 +02:00
committed by Marge Bot
parent fa287c99ed
commit ed865440db

View File

@@ -1001,7 +1001,8 @@ handle_vs_outputs_post(struct radv_shader_context *ctx)
struct radv_shader_output_values *outputs;
unsigned noutput = 0;
if (ctx->shader_info->so.num_outputs && !ctx->args->is_gs_copy_shader && ctx->stage != MESA_SHADER_GEOMETRY) {
if (ctx->shader_info->so.num_outputs && !ctx->args->is_gs_copy_shader &&
ctx->stage != MESA_SHADER_GEOMETRY && !ctx->shader_info->is_ngg) {
/* The GS copy shader emission already emits streamout. */
radv_emit_streamout(ctx, 0);
}