anv: Put back code to grow shader scratch space
This was lost in commit a71e614d33.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user