X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fllvmpipe%2Flp_state_gs.c;h=7ea7a3906697e67df30040342db81a7524fa39de;hb=2f2d1b3d9b090aeba316d6c425c23e92340b5502;hp=c94afeddd1639273044c32314816b6c4500afd34;hpb=b995a010e688bc4d4557e973e5e28091c378e881;p=mesa.git diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c b/src/gallium/drivers/llvmpipe/lp_state_gs.c index c94afeddd16..7ea7a390669 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_gs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_gs.c @@ -60,9 +60,11 @@ llvmpipe_create_gs_state(struct pipe_context *pipe, state->no_tokens = !templ->tokens; memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); - state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); - if (state->dgs == NULL) { - goto no_dgs; + if (templ->tokens) { + state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); + if (state->dgs == NULL) { + goto no_dgs; + } } return state;