freedreno/ir3: fix setting the max tf vertex when there are no outputs

Fixes dEQP-GLES3.functional.transform_feedback.* on a4xx.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13760>
This commit is contained in:
Ilia Mirkin 2021-11-11 17:01:11 -05:00 committed by Marge Bot
parent c0de7ea0ab
commit 4ffcef821c
1 changed files with 2 additions and 2 deletions

View File

@ -562,9 +562,9 @@ ir3_update_max_tf_vtx(struct fd_context *ctx,
uint32_t maxvtxcnt = 0x7fffffff;
if (v->shader->stream_output.num_outputs == 0)
ctx->streamout.max_tf_vtx = 0;
maxvtxcnt = 0;
if (so->num_targets == 0)
ctx->streamout.max_tf_vtx = 0;
maxvtxcnt = 0;
/* offset to write to is:
*