From 622187974f70377378a4b492f573ee89541bd4fc Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 12 Dec 2024 13:02:37 +0100 Subject: [PATCH] pan/cs: Allow undefined value if condition=always in cs_branch_label() We already do that in the other cs_emit(b, BRANCH, I), so let's fix this path too. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Reviewed-by: Benjamin Lee Part-of: --- src/panfrost/lib/genxml/cs_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/genxml/cs_builder.h b/src/panfrost/lib/genxml/cs_builder.h index e9ec4eac1e1..889d667d2b7 100644 --- a/src/panfrost/lib/genxml/cs_builder.h +++ b/src/panfrost/lib/genxml/cs_builder.h @@ -872,7 +872,7 @@ cs_branch_label(struct cs_builder *b, struct cs_label *label, cs_emit(b, BRANCH, I) { I.offset = offset; I.condition = cond; - I.value = cs_src32(b, val); + I.value = cond != MALI_CS_CONDITION_ALWAYS ? cs_src32(b, val) : 0; } } }