[Mesa-dev] [PATCH 1/3] anv: Provide a error message with a DEVICE_LOST
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Oct 25 17:13:09 UTC 2018
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 25/10/2018 17:46, Jason Ekstrand wrote:
> ---
> src/intel/vulkan/anv_device.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index c009176dcc6..8e4436ec960 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -3096,7 +3096,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);
More information about the mesa-dev
mailing list