diff options
author | Dave Airlie <[email protected]> | 2020-04-08 15:44:15 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-04-15 14:26:14 +1000 |
commit | 335827eade38d6f0647d9a01af2a1a5a1b59dd2d (patch) | |
tree | 1cf7b640e8b05a4489fe9e3d59d0799d53d3fcb5 /src/gallium | |
parent | ccc6a48ec5be0a748d77d56168ba90e2784b0a33 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_gs.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |