We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit 967d238c authored by Jason Ekstrand's avatar Jason Ekstrand

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's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 69fa3fb7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment