Mesa (main): turnip: Account for additional_cs_reserve_size for both bin and render.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 11 16:54:56 UTC 2022
Module: Mesa
Branch: main
Commit: 7d9a824d2786f78165151da1e3c69f4f2bb4d081
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d9a824d2786f78165151da1e3c69f4f2bb4d081
Author: Emma Anholt <emma at anholt.net>
Date: Thu Jun 16 16:29:51 2022 -0700
turnip: Account for additional_cs_reserve_size for both bin and render.
Both emit_program() calls will use this space.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17102>
---
src/freedreno/vulkan/tu_pipeline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c
index 4d191c9a156..5a0508b1c99 100644
--- a/src/freedreno/vulkan/tu_pipeline.c
+++ b/src/freedreno/vulkan/tu_pipeline.c
@@ -2347,7 +2347,8 @@ tu_pipeline_allocate_cs(struct tu_device *dev,
}
}
- size += builder->additional_cs_reserve_size;
+ /* The additional size is used twice, once per tu6_emit_program() call. */
+ size += builder->additional_cs_reserve_size * 2;
} else {
size += compute->info.size / 4;
More information about the mesa-commit
mailing list