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 <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Benjamin Lee <benjamin.lee@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32973>
This commit is contained in:
Boris Brezillon
2024-12-12 13:02:37 +01:00
committed by Marge Bot
parent e8514fb4c4
commit 622187974f
+1 -1
View File
@@ -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;
}
}
}