diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-01 18:22:01 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-05 23:26:04 +0000 |
commit | 0ab3f687c012c7e29fbb9da348bec1854ee85fd7 (patch) | |
tree | 1344280691de123f20a463b25273428fa68f7725 /src/panfrost/bifrost/bi_pack.c | |
parent | 75aabc6ea1616c44833db44255d3f33a0df368ca (diff) |
pan/bi: Handle BIFROST_FIRST_WRITE_FMA_P2_READ_P3
It's a special case for unclear reasons, and if you mess it up you get
INSTR_INVALID_ENC. Isn't hardware fun?
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4458>
Diffstat (limited to 'src/panfrost/bifrost/bi_pack.c')
-rw-r--r-- | src/panfrost/bifrost/bi_pack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 8cd4dd3b916..f1eb3be52b0 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -315,6 +315,8 @@ bi_pack_register_ctrl(struct bi_registers r) if (r.first_instruction) { if (ctrl == BIFROST_REG_NONE) ctrl = BIFROST_FIRST_NONE; + else if (ctrl == BIFROST_WRITE_FMA_P2_READ_P3) + ctrl = BIFROST_FIRST_WRITE_FMA_P2_READ_P3; else ctrl |= BIFROST_FIRST_NONE; } |