From b4aa46ff893e42bc2e2c691d10d2fbcf480b0e74 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 31 Aug 2022 11:41:01 -0700 Subject: [PATCH] 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: --- src/freedreno/vulkan/tu_pass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedreno/vulkan/tu_pass.c b/src/freedreno/vulkan/tu_pass.c index 3ed5fb1274c..8bd9ca0a054 100644 --- a/src/freedreno/vulkan/tu_pass.c +++ b/src/freedreno/vulkan/tu_pass.c @@ -639,6 +639,9 @@ tu_render_pass_gmem_config(struct tu_render_pass *pass, static void tu_render_pass_bandwidth_config(struct tu_render_pass *pass) { + pass->gmem_bandwidth_per_pixel = 0; + pass->sysmem_bandwidth_per_pixel = 0; + for (uint32_t i = 0; i < pass->attachment_count; i++) { const struct tu_render_pass_attachment *att = &pass->attachments[i];