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>
}
/* 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) {