panfrost: Fix UBO count calculation on Bifrost
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 22 Nov 2020 17:53:22 +0000 (18:53 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 Jan 2021 17:39:39 +0000 (17:39 +0000)
commitc80c68cd496cecb2c7a594e23aa074649b9de7b0
tree6e544ac8b6412ec7cfbb8cdb94e82ec5134f2da7
parent67de6356f8474fa11bb8c64e835f30a910a32b1f
panfrost: Fix UBO count calculation on Bifrost

The Bifrost compiler relies on nir_lower_uniforms_to_ubo() to lower
uniforms to UBOs, and s->info.num_ubos is already incremented when a
UBO #0 is created.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8418>
src/gallium/drivers/panfrost/pan_assemble.c