mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
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:
parent
3bd239f71d
commit
319ff6f1ad
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue