diff options
author | Jason Ekstrand <[email protected]> | 2018-03-13 11:50:33 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-26 08:40:21 -0500 |
commit | cd0960b430517b17cdead266e05a81ac586cf970 (patch) | |
tree | e2be4680380f4c70b66049ffe6af7cb8518dd180 /src/intel/vulkan/genX_query.c | |
parent | 319ff6f1ad3e745b1783bb64a38bedb9f29a140c (diff) |
anv: Add helpers for setting/checking device lost
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_query.c')
-rw-r--r-- | src/intel/vulkan/genX_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 7533ec05095..7dd9112d296 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -181,7 +181,7 @@ wait_for_available(struct anv_device *device, continue; } else if (ret == -1) { /* We don't know the real error. */ - device->lost = true; + anv_device_set_lost(device, "gem wait failed: %m"); return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST, "gem wait failed: %m"); } else { @@ -224,7 +224,7 @@ VkResult genX(GetQueryPoolResults)( pool->type == VK_QUERY_TYPE_PIPELINE_STATISTICS || pool->type == VK_QUERY_TYPE_TIMESTAMP); - if (unlikely(device->lost)) + if (anv_device_is_lost(device)) return VK_ERROR_DEVICE_LOST; if (pData == NULL) |