pan/bi: Set I->nr_dests, I->nr_srcs
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 21 Jul 2022 15:56:44 +0000 (11:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
commit42b815397c8d61443d2ce7e4507538af90d456b6
tree780ee751313c56d9a34185b32d48de5350bbd78e
parentb25c42d8aecad16a4c2d94c6ba76d14ec55aac73
pan/bi: Set I->nr_dests, I->nr_srcs

The builder is the primary producer of instructions, and generally the shape of
an instruction is fixed at build-time. It must set nr_dests/nr_srcs
appropriately. Likewise, when we modify sources later, we need to update
nr_srcs/nr_dests to keep everything consistent (and keep the tests passing).

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
src/panfrost/bifrost/bi_builder.h.py
src/panfrost/bifrost/bi_opt_mod_props.c
src/panfrost/bifrost/bi_schedule.c
src/panfrost/bifrost/bir.c
src/panfrost/bifrost/valhall/va_lower_isel.c
src/panfrost/bifrost/valhall/va_optimize.c