summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-14 14:52:36 -0700
committerJason Ekstrand <[email protected]>2016-05-19 21:18:59 -0700
commitc29ffea6d161b14e1c6d1d1af7727425b323a3b5 (patch)
tree6cf0ffd14488683fe5bb13bd8557b0478dce814b /src/intel/vulkan/anv_device.c
parentd5b4638d6a7f623f1ad937a840d68922f00e29cf (diff)
anv/device: Add a boolean for robust buffer access
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c3
1 files changed, 3 insertions, 0 deletions
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);