st/oxr: define convert_compare_op only when OXR_HAVE_FB_composition_layer_depth_test is enabled

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140>
This commit is contained in:
Simon Zeni 2024-02-08 12:48:38 -05:00 committed by Simon Zeni
parent 7bbb6d6864
commit 58add75b1e

View file

@ -129,6 +129,7 @@ convert_layer_flags(XrSwapchainUsageFlags xr_flags)
return flags; return flags;
} }
#ifdef OXR_HAVE_FB_composition_layer_depth_test
static enum xrt_compare_op_fb static enum xrt_compare_op_fb
convert_compare_op(XrCompareOpFB xr_compare_op) convert_compare_op(XrCompareOpFB xr_compare_op)
{ {
@ -144,6 +145,7 @@ convert_compare_op(XrCompareOpFB xr_compare_op)
default: return XRT_COMPARE_OP_MAX_ENUM_FB; default: return XRT_COMPARE_OP_MAX_ENUM_FB;
} }
} }
#endif
static enum xrt_layer_eye_visibility static enum xrt_layer_eye_visibility
convert_eye_visibility(XrSwapchainUsageFlags xr_visibility) convert_eye_visibility(XrSwapchainUsageFlags xr_visibility)