OSDN Git Service

anv: return VK_ERROR_DEVICE_LOST immeditely when device is known to be lost
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 22 Mar 2017 08:18:56 +0000 (09:18 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 24 Mar 2017 07:11:53 +0000 (08:11 +0100)
commit4da1832c00ab93cbf90b14501840dd698565a869
tree54631da3c1190d91c062f0fa265ef7b182e67ae9
parent50c8d2c1f71944688ebf753af3866981a07c4e9c
anv: return VK_ERROR_DEVICE_LOST immeditely when device is known to be lost

If we know the device has been lost we should return this error code for
any command that can report it before we attempt to do anything with the
device.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c
src/intel/vulkan/genX_query.c