panfrost: Add a knob to disable the UBO -> push constants optimization
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 5 Mar 2021 12:18:03 +0000 (13:18 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 15:10:57 +0000 (15:10 +0000)
commit92d9f090d9faa83a6f3215682f6b7a5a6844b160
tree5772eb93b140d81c3858f174e7ed4596fe9da9c8
parent2229328cf9213bfbfac2e0e5cc411a41bcaae695
panfrost: Add a knob to disable the UBO -> push constants optimization

I'm just too lazy to implement the logic to prepare push constant
buffers in the Vulkan driver. Besides, Vulkan has explicit push
constants, which AFAIK is not handled in the compiler backends yet,
and that will probably conflict with the UBO -> push constant
promotion.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9517>
src/panfrost/bifrost/bi_opt_push_ubo.c
src/panfrost/midgard/mir_promote_uniforms.c
src/panfrost/util/pan_ir.h