aco: fix emitting stream output with tess eval shaders
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Apr 2020 15:46:51 +0000 (17:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 07:57:39 +0000 (07:57 +0000)
Fixes dEQP-VK.transform_feedback.simple.winding_patch_list_12.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4553>

src/amd/compiler/aco_instruction_selection.cpp

index c0977f518b88f88110f0911ff0383fdf2fe6d7c3..21ba2ec2cf6c26a7907d10e591695ab4ecd6e399 100644 (file)
@@ -10199,7 +10199,7 @@ static void emit_stream_output(isel_context *ctx,
 
    Temp out[4];
    bool all_undef = true;
-   assert(ctx->stage == vertex_vs || ctx->stage == gs_copy_vs);
+   assert(ctx->stage & hw_vs);
    for (unsigned i = 0; i < num_comps; i++) {
       out[i] = ctx->outputs.temps[loc * 4 + start + i];
       all_undef = all_undef && !out[i].id();