pan/bi: Index out constants in instructions
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 20 Mar 2020 02:43:06 +0000 (22:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 22 Mar 2020 03:32:35 +0000 (03:32 +0000)
commitfc0b49bb2cae9a0c8074faff680ddc91c8dd4bfe
tree445292cd731b5bdbd6ead4083913aca93c64356f
parentd2d0de962ed385fd4dc71bf6d142c233b6d0998b
pan/bi: Index out constants in instructions

We rewrite BIR_INDEX_CONSTANT (and _ZERO) to preassigned constant ports
when assign uniform_const for the bundle. There are a lot of issues
raised here, unfortunately, and the implementation here is woefully
incomplete with a nasty hack for loads... nevertheless, it's somewhere
to start.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
src/panfrost/bifrost/bi_pack.c