diff options
author | Jason Ekstrand <[email protected]> | 2017-12-27 08:41:30 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-12-28 10:39:04 -0800 |
commit | 967d238c699dd29d5b5a55e6dde08feef2fa7850 (patch) | |
tree | e9252599579826bc5d535e552f8e879df1f94eb9 /src | |
parent | 69fa3fb77f298f717be9a45b3989d039071ffe15 (diff) |
anv/device: Mark all state buffers as needing capture
Previously, we were flagging the instruction state buffer for capture
but not surface state or dynamic state. We want those captured too.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 4638f311dd1..680f5a752d6 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1251,7 +1251,8 @@ VkResult anv_CreateDevice( goto fail_batch_bo_pool; /* For the state pools we explicitly disable 48bit. */ - bo_flags = physical_device->has_exec_async ? EXEC_OBJECT_ASYNC : 0; + bo_flags = (physical_device->has_exec_async ? EXEC_OBJECT_ASYNC : 0) | + (physical_device->has_exec_capture ? EXEC_OBJECT_CAPTURE : 0); result = anv_state_pool_init(&device->dynamic_state_pool, device, 16384, bo_flags); @@ -1259,8 +1260,7 @@ VkResult anv_CreateDevice( goto fail_bo_cache; result = anv_state_pool_init(&device->instruction_state_pool, device, 16384, - bo_flags | - (physical_device->has_exec_capture ? EXEC_OBJECT_CAPTURE : 0)); + bo_flags); if (result != VK_SUCCESS) goto fail_dynamic_state_pool; |