pan/bi: Make bi_opt_push_ubo optional
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 11 Aug 2021 14:03:13 +0000 (10:03 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Aug 2021 18:00:45 +0000 (18:00 +0000)
commitff03f096bfac526914c22ffc4c653de38ecf2cc3
tree16c9d56ee4274a15b7f929cfffcf955697fe42f8
parent01b0935d315347cfd06bb5d8bb1a6b59913f94cc
pan/bi: Make bi_opt_push_ubo optional

It's an optimization pass -- omitting it should not cause MMU faults
(!). Make sure the UBO push mask is set regardless of whether the pass
is called, and just call the pass when required.

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