From c24bb53dbfd93f393a5074b110bd93504411e57c Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 15 Nov 2023 16:24:22 +0000 Subject: [PATCH] xrt: Add XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED error --- src/xrt/auxiliary/util/u_pretty_print.c | 1 + src/xrt/include/xrt/xrt_results.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/xrt/auxiliary/util/u_pretty_print.c b/src/xrt/auxiliary/util/u_pretty_print.c index cb5a50666..94aab73d5 100644 --- a/src/xrt/auxiliary/util/u_pretty_print.c +++ b/src/xrt/auxiliary/util/u_pretty_print.c @@ -392,6 +392,7 @@ u_pp_xrt_result(struct u_pp_delegate dg, xrt_result_t xret) case XRT_ERROR_RECENTERING_NOT_SUPPORTED: DG("XRT_ERROR_RECENTERING_NOT_SUPPORTED"); return; case XRT_ERROR_COMPOSITOR_NOT_SUPPORTED: DG("XRT_ERROR_COMPOSITOR_NOT_SUPPORTED"); return; case XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED: DG("XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED"); return; + case XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED: DG("XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED"); return; } // clang-format on diff --git a/src/xrt/include/xrt/xrt_results.h b/src/xrt/include/xrt/xrt_results.h index fbd012c60..166f836ba 100644 --- a/src/xrt/include/xrt/xrt_results.h +++ b/src/xrt/include/xrt/xrt_results.h @@ -174,4 +174,11 @@ typedef enum xrt_result * which is needed for the given command. */ XRT_ERROR_IPC_COMPOSITOR_NOT_CREATED = -28, + + /*! + * The function called on the device was not implemented, it is not + * meant to query the availability of the function or feature, only a + * error condition on bad code. + */ + XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED = -29, } xrt_result_t;