From b833e7a63c0df2c6d4c24e11d8196c90bfd0906e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Wed, 27 Jan 2016 11:36:44 -0800 Subject: [PATCH] anv: Put back code to grow shader scratch space This was lost in commit a71e614d33e8d869bbaced8948349a7180783ab7. --- src/vulkan/anv_pipeline.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c index 40f26d708ee..e879b35388d 100644 --- a/src/vulkan/anv_pipeline.c +++ b/src/vulkan/anv_pipeline.c @@ -1182,6 +1182,10 @@ anv_pipeline_init(struct anv_pipeline *pipeline, if (extra && extra->use_rectlist) pipeline->topology = _3DPRIM_RECTLIST; + while (anv_block_pool_size(&device->scratch_block_pool) < + pipeline->total_scratch) + anv_block_pool_alloc(&device->scratch_block_pool); + return VK_SUCCESS; } -- 2.30.2