summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-25 10:13:12 -0500
committerJason Ekstrand <[email protected]>2018-10-26 08:40:10 -0500
commit319ff6f1ad3e745b1783bb64a38bedb9f29a140c (patch)
tree2487f9d8012afe563ecc6ae5c2afa166c1423807 /src/intel/vulkan/anv_device.c
parent3bd239f71dc9365025c879c3a658493a6ca3504f (diff)
anv: Provide a error message with a DEVICE_LOST
Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 3ac1bad93ed..87fe5e4dbbf 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -3095,7 +3095,8 @@ VkResult anv_GetCalibratedTimestampsEXT(
if (ret != 0) {
device->lost = TRUE;
- return VK_ERROR_DEVICE_LOST;
+ return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
+ "Failed to read the TIMESTAMP register: %m");
}
uint64_t device_period = DIV_ROUND_UP(1000000000, timestamp_frequency);
max_clock_period = MAX2(max_clock_period, device_period);