From: Marek Olšák Date: Wed, 21 Aug 2019 00:08:38 +0000 (-0400) Subject: radeonsi/gfx10: create the GS copy shader if using legacy streamout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f34d023f1aac9133100549ffc9a61f3a0778fe45;p=mesa.git radeonsi/gfx10: create the GS copy shader if using legacy streamout Acked-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 72719d8c475..d0a82ac47df 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2565,7 +2565,9 @@ static void si_init_shader_selector_async(void *job, int thread_index) /* The GS copy shader is always pre-compiled. */ if (sel->type == PIPE_SHADER_GEOMETRY && - (!sscreen->use_ngg || sel->tess_turns_off_ngg)) { + (!sscreen->use_ngg || + !sscreen->use_ngg_streamout || /* also for PRIMITIVES_GENERATED */ + sel->tess_turns_off_ngg)) { sel->gs_copy_shader = si_generate_gs_copy_shader(sscreen, compiler, sel, debug); if (!sel->gs_copy_shader) { fprintf(stderr, "radeonsi: can't create GS copy shader\n");