anv/device: Add a boolean for robust buffer access

This commit is contained in:
Jason Ekstrand
2016-05-14 14:52:36 -07:00
parent d5b4638d6a
commit c29ffea6d1
2 changed files with 4 additions and 0 deletions

View File

@@ -848,6 +848,9 @@ VkResult anv_CreateDevice(
*/
device->can_chain_batches = device->info.gen >= 8;
device->robust_buffer_access = pCreateInfo->pEnabledFeatures &&
pCreateInfo->pEnabledFeatures->robustBufferAccess;
pthread_mutex_init(&device->mutex, NULL);
anv_bo_pool_init(&device->batch_bo_pool, device);

View File

@@ -678,6 +678,7 @@ struct anv_device {
int context_id;
int fd;
bool can_chain_batches;
bool robust_buffer_access;
struct anv_bo_pool batch_bo_pool;