diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index fb23ec00e62..0b78f7a298f 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -482,9 +482,15 @@ VkResult __vk_errorf(struct anv_instance *instance, const void *object, vk_errorfi(anv_device_instance_or_null(device),\ obj, error, format, ## __VA_ARGS__) #else -#define vk_error(error) error -#define vk_errorfi(instance, obj, error, format, ...) error -#define vk_errorf(device, obj, error, format, ...) error + +static inline VkResult __dummy_vk_error(VkResult error, UNUSED const void *ignored) +{ + return error; +} + +#define vk_error(error) __dummy_vk_error(error, NULL) +#define vk_errorfi(instance, obj, error, format, ...) __dummy_vk_error(error, instance) +#define vk_errorf(device, obj, error, format, ...) __dummy_vk_error(error, device) #endif /**