Mesa (main): freedreno/ir3: fix setting the max tf vertex when there are no outputs
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 12 00:09:55 UTC 2021
Module: Mesa
Branch: main
Commit: 4ffcef821c0ac0e7f76ffb82bc0f50f0b8dbba4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ffcef821c0ac0e7f76ffb82bc0f50f0b8dbba4b
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Nov 11 17:01:11 2021 -0500
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 at alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13760>
---
src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
index 64b95da5d0c..f26e8103421 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
@@ -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:
*
More information about the mesa-commit
mailing list