anv/device: Return DEVICE_LOST if execbuf2 fails
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 31 Oct 2016 23:33:43 +0000 (16:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Nov 2016 14:54:52 +0000 (07:54 -0700)
commitc41ec1679f02d6705ceda49d9ad966d0d0833824
tree97ce2443e5773072e0235cac7f850ad3b097008c
parent61a8a55f557784c8ec17fb1758775c6f18252201
anv/device: Return DEVICE_LOST if execbuf2 fails

This makes more sense than OUT_OF_HOST_MEMORY.  Technically, you can
recover from a failed execbuf2 but the batch you just submitted didn't
fully execute so things are in an ill-defined state.  The app doesn't want
to continue from that point anyway.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_device.c