From: Dave Airlie Date: Wed, 8 Apr 2020 05:44:15 +0000 (+1000) Subject: llvmpipe: fix no tokens detections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=335827eade38d6f0647d9a01af2a1a5a1b59dd2d;p=mesa.git llvmpipe: fix no tokens detections. this only applies to the TGSI path, fixes KHR-GLES31.core.geometry_shader.api.program_pipeline_vs_gs_capture Reviewed-by: Roland Scheidegger Part-of: --- 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) {