diff options
author | Jason Ekstrand <[email protected]> | 2018-10-26 08:32:39 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-26 13:27:21 -0500 |
commit | 07eb8e74664f47ebd8d89e92311ca984542088fd (patch) | |
tree | ced23fd1c08a8f06bd7b57e4f428bda843706d5a /src/intel/vulkan/anv_private.h | |
parent | ade22ae1ace051422b972ef057e57aab6fdfa024 (diff) |
anv: Return VK_ERROR_DEVICE_LOST from anv_device_set_lost
This lets us get rid of a bunch of duplicated error messages.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index c5d636fef8d..25e290ed112 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1083,8 +1083,11 @@ anv_state_flush(struct anv_device *device, struct anv_state state) void anv_device_init_blorp(struct anv_device *device); void anv_device_finish_blorp(struct anv_device *device); -void anv_device_set_lost(struct anv_device *device, - const char *msg, ...); +VkResult _anv_device_set_lost(struct anv_device *device, + const char *file, int line, + const char *msg, ...); +#define anv_device_set_lost(dev, ...) \ + _anv_device_set_lost(dev, __FILE__, __LINE__, __VA_ARGS__) static inline bool anv_device_is_lost(struct anv_device *device) |