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 <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
This commit is contained in:
Dave Airlie
2020-04-08 15:44:15 +10:00
parent ccc6a48ec5
commit 335827eade

View File

@@ -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) {