u/device: Add U_DEVICE_ALLOC_NO_FLAGS

Allows using U_DEVICE_ALLOCATE without flags without a cast.
This commit is contained in:
Christoph Haag 2020-12-27 23:49:32 +01:00 committed by Jakob Bornecrantz
parent d85224e7c3
commit c84dbad03e

View file

@ -26,6 +26,7 @@ extern const struct xrt_matrix_2x2 u_device_rotation_180;
enum u_device_alloc_flags
{
// clang-format off
U_DEVICE_ALLOC_NO_FLAGS = 0,
U_DEVICE_ALLOC_HMD = 1 << 0,
U_DEVICE_ALLOC_TRACKING_NONE = 1 << 1,
// clang-format on