mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 03:30:22 +01:00
pan/bi: Don't assign slots for the blend second source
Another instruction might write to the second source, and then an INSTR_INVALID_ENC fault will be raised because the tuple will write to and read from the register at the same time. Fixes:795638767d("pan/bi: Use fused dual source blending") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15250> (cherry picked from commitba18799ca1)
This commit is contained in:
parent
909b675c19
commit
085a5d96e5
2 changed files with 7 additions and 1 deletions
|
|
@ -562,7 +562,7 @@
|
|||
"description": "pan/bi: Don't assign slots for the blend second source",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "795638767d142a58b76c91a0719e42536435320f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -114,6 +114,12 @@ bi_assign_slots(bi_tuple *now, bi_tuple *prev)
|
|||
|
||||
if (now->add) {
|
||||
bi_foreach_src(now->add, src) {
|
||||
/* This is not a real source, we shouldn't assign a
|
||||
* slot for it.
|
||||
*/
|
||||
if (now->add->op == BI_OPCODE_BLEND && src == 4)
|
||||
continue;
|
||||
|
||||
if (!(src == 0 && read_dreg))
|
||||
bi_assign_slot_read(&now->regs, (now->add)->src[src]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue