anv: Provide a error message with a DEVICE_LOST

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Jason Ekstrand 2018-10-25 10:13:12 -05:00
parent 3bd239f71d
commit 319ff6f1ad

View file

@ -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);