mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
anv/device: Add a boolean for robust buffer access
This commit is contained in:
parent
d5b4638d6a
commit
c29ffea6d1
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue