turnip: Make sure bandwidth config per pixel starts from 0.
authorEmma Anholt <emma@anholt.net>
Wed, 31 Aug 2022 18:41:01 +0000 (11:41 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 22:38:04 +0000 (22:38 +0000)
commitb4aa46ff893e42bc2e2c691d10d2fbcf480b0e74
tree772675f7de48c609df4feb20a349f4e66fd18f9f
parent2c8469034947f1e9c410c014a9865a7256a453b1
turnip: Make sure bandwidth config per pixel starts from 0.

We'd keep incrementing the costs in a cmd buffer's dynamic_pass on each
BeginRendering.  This fixes the main renderpass of aztec ruins on zink to
use gmem, taking fps from ~8 to ~10.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18352>
src/freedreno/vulkan/tu_pass.c