Mesa (master): pan/bi: Don't reference uninit source in ATOM_C1
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 3 15:29:40 UTC 2021
Module: Mesa
Branch: master
Commit: 84756b980cb8ca2dd9c513cca494c206f2a4a61c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=84756b980cb8ca2dd9c513cca494c206f2a4a61c
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Mon May 3 11:03:11 2021 -0400
pan/bi: Don't reference uninit source in ATOM_C1
Causes it to be live throughout the shader, causing register allocation
failures on some dEQP-GLES31 shaders.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10392>
---
src/panfrost/bifrost/bi_schedule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c
index fa98b0804b2..21a597f6992 100644
--- a/src/panfrost/bifrost/bi_schedule.c
+++ b/src/panfrost/bifrost/bi_schedule.c
@@ -211,7 +211,7 @@ bi_lower_atom_c1(bi_context *ctx, struct bi_clause_state *clause, struct
pinstr->src[2] = pinstr->src[1];
pinstr->src[1] = pinstr->src[0];
pinstr->src[3] = bi_dontcare();
- pinstr->src[0] = pinstr->dest[0];
+ pinstr->src[0] = bi_null();
return atom_c;
}
More information about the mesa-commit
mailing list