zink: use slightly stricter check for update_so_info() callsite

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9271>
This commit is contained in:
Mike Blumenkrantz 2021-02-24 18:23:43 -05:00 committed by Marge Bot
parent 0fb7680b26
commit 1f42ff77df
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir,
}
ret->nir = nir;
if (so_info) {
if (so_info && nir->info.outputs_written && nir->info.has_transform_feedback_varyings) {
memcpy(&ret->streamout.so_info, so_info, sizeof(struct pipe_stream_output_info));
update_so_info(ret, so_info, nir->info.outputs_written, have_psiz);
}