anv: Handle the device loss abort in anv_device_set_lost
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "anv_private.h"
|
||||
#include "vk_enum_to_str.h"
|
||||
#include "util/debug.h"
|
||||
|
||||
/** Log an error message. */
|
||||
void anv_printflike(1, 2)
|
||||
@@ -112,9 +111,5 @@ __vk_errorf(struct anv_instance *instance, const void *object,
|
||||
|
||||
intel_loge("%s", report);
|
||||
|
||||
if (error == VK_ERROR_DEVICE_LOST &&
|
||||
env_var_as_boolean("ANV_ABORT_ON_DEVICE_LOSS", false))
|
||||
abort();
|
||||
|
||||
return error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user