diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-27 11:36:44 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-27 11:36:56 -0800 |
commit | b833e7a63c0df2c6d4c24e11d8196c90bfd0906e (patch) | |
tree | 59f554353a3d4fd5e5a102881aa863ddcf154cf1 /src/vulkan | |
parent | 38a3a535eb395dc3a7718cea1bc135f0d94a6dad (diff) |
anv: Put back code to grow shader scratch space
This was lost in commit a71e614d33e8d869bbaced8948349a7180783ab7.
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_pipeline.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |