diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c b/src/gallium/drivers/llvmpipe/lp_state_gs.c index b2a918ca957..302d599024d 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_gs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_gs.c @@ -57,7 +57,10 @@ llvmpipe_create_gs_state(struct pipe_context *pipe, } /* copy stream output info */ - state->no_tokens = !templ->tokens; + if (templ->type == PIPE_SHADER_IR_TGSI) + state->no_tokens = !templ->tokens; + else + state->no_tokens = FALSE; memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); if (templ->tokens || templ->type == PIPE_SHADER_IR_NIR) {