mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 00:20:09 +01:00
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:
parent
f1d551ea9f
commit
bca242c785
1 changed files with 3 additions and 3 deletions
|
|
@ -289,9 +289,9 @@ bi_assign_slots(bi_bundle *now, bi_bundle *prev)
|
||||||
static enum bifrost_reg_mode
|
static enum bifrost_reg_mode
|
||||||
bi_pack_register_mode(bi_registers r)
|
bi_pack_register_mode(bi_registers r)
|
||||||
{
|
{
|
||||||
/* Handle idle special case for first instructions */
|
/* Handle idle as a special case */
|
||||||
if (r.first_instruction && !(r.slot23.slot2 | r.slot23.slot3))
|
if (!(r.slot23.slot2 | r.slot23.slot3))
|
||||||
return BIFROST_IDLE_1;
|
return r.first_instruction ? BIFROST_IDLE_1 : BIFROST_IDLE;
|
||||||
|
|
||||||
/* Otherwise, use the LUT */
|
/* Otherwise, use the LUT */
|
||||||
for (unsigned i = 0; i < ARRAY_SIZE(bifrost_reg_ctrl_lut); ++i) {
|
for (unsigned i = 0; i < ARRAY_SIZE(bifrost_reg_ctrl_lut); ++i) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue