pan/bi: Fix IDLE register mode packing

Was incorrectly returning zero. Special case like IDLE_1.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig 2020-12-30 13:15:13 -05:00 committed by Marge Bot
parent f1d551ea9f
commit bca242c785
1 changed files with 3 additions and 3 deletions

View File

@ -289,9 +289,9 @@ bi_assign_slots(bi_bundle *now, bi_bundle *prev)
static enum bifrost_reg_mode
bi_pack_register_mode(bi_registers r)
{
/* Handle idle special case for first instructions */
if (r.first_instruction && !(r.slot23.slot2 | r.slot23.slot3))
return BIFROST_IDLE_1;
/* Handle idle as a special case */
if (!(r.slot23.slot2 | r.slot23.slot3))
return r.first_instruction ? BIFROST_IDLE_1 : BIFROST_IDLE;
/* Otherwise, use the LUT */
for (unsigned i = 0; i < ARRAY_SIZE(bifrost_reg_ctrl_lut); ++i) {