mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
jay: allow predication of pure-flag instrs
i.e. compares 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
2ab8a614dd
commit
5d22e9d2a5
1 changed files with 2 additions and 1 deletions
|
|
@ -214,7 +214,8 @@ validate_inst(struct validate_state *validate, jay_inst *I)
|
|||
CHECK(num_srcs >= I->predication);
|
||||
|
||||
if (jay_inst_has_default(I)) {
|
||||
CHECK(jay_inst_get_default(I)->file == I->dst.file);
|
||||
jay_def dst = jay_is_null(I->dst) ? I->cond_flag : I->dst;
|
||||
CHECK(jay_inst_get_default(I)->file == dst.file);
|
||||
}
|
||||
|
||||
CHECK(jay_is_flag(*jay_inst_get_predicate(I)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue