anv/batch_chain: Fall back to growing batches when chaining isn't available

This commit is contained in:
Jason Ekstrand
2016-03-18 16:32:46 -07:00
parent ecfb074276
commit 869e393eb3
3 changed files with 70 additions and 2 deletions

View File

@@ -826,6 +826,13 @@ VkResult anv_CreateDevice(
device->info = *physical_device->info;
device->isl_dev = physical_device->isl_dev;
/* On Broadwell and later, we can use batch chaining to more efficiently
* implement growing command buffers. Prior to Haswell, the kernel
* command parser gets in the way and we have to fall back to growing
* the batch.
*/
device->can_chain_batches = device->info.gen >= 8;
pthread_mutex_init(&device->mutex, NULL);
anv_bo_pool_init(&device->batch_bo_pool, device);