From: Kristian Høgsberg Kristensen Date: Wed, 27 Jan 2016 19:36:44 +0000 (-0800) Subject: anv: Put back code to grow shader scratch space X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b833e7a63c0df2c6d4c24e11d8196c90bfd0906e;p=mesa.git anv: Put back code to grow shader scratch space This was lost in commit a71e614d33e8d869bbaced8948349a7180783ab7. --- 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; }