From c29ffea6d161b14e1c6d1d1af7727425b323a3b5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 14 May 2016 14:52:36 -0700 Subject: [PATCH] anv/device: Add a boolean for robust buffer access --- src/intel/vulkan/anv_device.c | 3 +++ src/intel/vulkan/anv_private.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 5b5b095f28d..e9f555c9d11 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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); diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 33cbff9ff3a..953d95df2c1 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -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; -- 2.30.2