anv/device: return VK_ERROR_DEVICE_LOST for errors during queue submissions
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 22 Mar 2017 07:35:39 +0000 (08:35 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 24 Mar 2017 07:11:53 +0000 (08:11 +0100)
commit70194c9f1ab56f1ebe8f69cc4631df6e960e62ae
tree89731c923524310b07442864ad72ceb7caec3a5b
parentadced4a2f9d017ae126a438f97eb305fa0ca3bd0
anv/device: return VK_ERROR_DEVICE_LOST for errors during queue submissions

So that we don't have to do things like rolling back address relocations in
case that we ran into OOM after computing them, etc

Also, make sure that if the queue submission comes with a fence, we set it up
correctly so it behaves according to the spec after returning
VK_ERROR_DEVICE_LOST.

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