anv/device: Add a boolean for robust buffer access
This commit is contained in:
@@ -848,6 +848,9 @@ VkResult anv_CreateDevice(
|
|||||||
*/
|
*/
|
||||||
device->can_chain_batches = device->info.gen >= 8;
|
device->can_chain_batches = device->info.gen >= 8;
|
||||||
|
|
||||||
|
device->robust_buffer_access = pCreateInfo->pEnabledFeatures &&
|
||||||
|
pCreateInfo->pEnabledFeatures->robustBufferAccess;
|
||||||
|
|
||||||
pthread_mutex_init(&device->mutex, NULL);
|
pthread_mutex_init(&device->mutex, NULL);
|
||||||
|
|
||||||
anv_bo_pool_init(&device->batch_bo_pool, device);
|
anv_bo_pool_init(&device->batch_bo_pool, device);
|
||||||
|
@@ -678,6 +678,7 @@ struct anv_device {
|
|||||||
int context_id;
|
int context_id;
|
||||||
int fd;
|
int fd;
|
||||||
bool can_chain_batches;
|
bool can_chain_batches;
|
||||||
|
bool robust_buffer_access;
|
||||||
|
|
||||||
struct anv_bo_pool batch_bo_pool;
|
struct anv_bo_pool batch_bo_pool;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user