mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
jay/lower_pre_ra: skip predication
otherwise the assert blows up Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41064>
This commit is contained in:
parent
176b9a0f0c
commit
375945ea0b
1 changed files with 3 additions and 2 deletions
|
|
@ -150,9 +150,10 @@ lower_immediates(jay_builder *b, jay_inst *I, struct hash_table_u64 *constants)
|
|||
if (I->op == JAY_OPCODE_CMP &&
|
||||
jay_is_zero(I->src[1]) &&
|
||||
jay_is_null(I->dst) &&
|
||||
I->type == JAY_TYPE_U32) {
|
||||
I->type == JAY_TYPE_U32 &&
|
||||
!I->predication) {
|
||||
|
||||
assert(!jay_is_null(I->cond_flag) && !I->predication);
|
||||
assert(!jay_is_null(I->cond_flag));
|
||||
I->op = JAY_OPCODE_MOV;
|
||||
jay_shrink_sources(I, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue