From 7d9a824d2786f78165151da1e3c69f4f2bb4d081 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Thu, 16 Jun 2022 16:29:51 -0700 Subject: [PATCH] turnip: Account for additional_cs_reserve_size for both bin and render. Both emit_program() calls will use this space. Part-of: --- 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;