radeonsi/gfx10: initialize EXEC for TES-as-NGG (without geometry shader)
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 31 Aug 2018 17:59:36 +0000 (19:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:13 +0000 (15:51 -0400)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_shader.c

index a99a58e56758a0d78e12c2c9ac028fee6bc3dd68..0b46b5ca62728607cb30f8f0f791b502098fc6d6 100644 (file)
@@ -6096,7 +6096,9 @@ static bool si_compile_tgsi_main(struct si_shader_context *ctx)
                        LLVMValueRef num_threads;
                        bool nested_barrier;
 
-                       if (!shader->is_monolithic)
+                       if (!shader->is_monolithic ||
+                           (ctx->type == PIPE_SHADER_TESS_EVAL &&
+                            shader->key.as_ngg))
                                ac_init_exec_full_mask(&ctx->ac);
 
                        if (ctx->type == PIPE_SHADER_TESS_CTRL ||