anv: Put back code to grow shader scratch space

This was lost in commit a71e614d33.
This commit is contained in:
Kristian Høgsberg Kristensen 2016-01-27 11:36:44 -08:00
parent 38a3a535eb
commit b833e7a63c
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}