Ryan Pavlik
3de9b08ebc
d/psmv: Use U_ZERO
2019-06-18 14:14:01 -05:00
Ryan Pavlik
2175a4226b
d/psvr: Use U_ZERO
2019-06-18 14:14:01 -05:00
Ryan Pavlik
661fa79057
st/prober: Use U_ZERO
2019-06-18 14:14:01 -05:00
Ryan Pavlik
bc4b36ed61
st/oxr: Use U_ZERO
2019-06-18 14:14:01 -05:00
Ryan Pavlik
15b61b5c4f
util: Add U_ZERO and U_ZERO_ARRAY wrappers for memset.
...
Ensures the type is always correct.
2019-06-18 14:14:01 -05:00
Ryan Pavlik
02be89bf35
targets: De-duplicate conditional inclusion of driver objects/libraries.
2019-06-18 18:44:17 +00:00
Ryan Pavlik
9d57e158f9
aux/util: fix truncation warning
2019-06-18 18:43:20 +00:00
Ryan Pavlik
287bd1cb06
d/ohmd: Cast bitmask enum
2019-06-18 18:43:20 +00:00
Ryan Pavlik
839d08616e
drv/psvr: Fix some enum casting build errors
2019-06-18 18:43:20 +00:00
Ryan Pavlik
b004f95503
comp: Adjust initialization order to match declaration.
2019-06-18 18:43:20 +00:00
Ryan Pavlik
941a18e06a
util/u_device: Use typed calloc wrapper
2019-06-18 18:41:57 +00:00
Ryan Pavlik
fbfee92601
d/oh: Have prober include interface header
...
Without this, the implementation definition might drift from the declaration,
and it doesn't get its extern "C"-ness.
2019-06-18 13:32:07 -05:00
Ryan Pavlik
0472bef1fa
d/hdk: Have prober include interface header
...
Without this, the implementation definition might drift from the declaration,
and it doesn't get its extern "C"-ness.
2019-06-18 13:31:32 -05:00
Ryan Pavlik
0f2635a6eb
a/os: Add extern "C" to hid header
2019-06-18 13:31:32 -05:00
Ryan Pavlik
d969297c50
ci: Add clang-format and codespell job to pipeline
2019-06-18 13:09:59 -05:00
Jakob Bornecrantz
739b6b7895
st/oxr: Code style fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
58f5d56d48
st/oxr: Code style fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
620fc01720
README: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
9635952165
aux/math: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
21e324ed57
comp: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
de0506fb0c
d/oh: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
aeff374fcb
d/psvr: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
2228a00b08
st/oxr: Codespell fix
2019-06-18 13:09:59 -05:00
Ryan Pavlik
126ef51090
scripts: Add format-and-spellcheck.sh
2019-06-18 13:09:59 -05:00
Ryan Pavlik
e27099206a
scripts: Add codespell script
2019-06-18 13:09:59 -05:00
Ryan Pavlik
a01cda7434
scripts: Replace format-project.sh with faster and BSL-1.0 licensed one
2019-06-18 13:09:59 -05:00
Jakob Bornecrantz
e745a28374
st/oxr: Basic foundation for input and output
...
This commits lays the foundation for actions in Monado (input and output).
There are lots of things missing and non-conformant in there. But once in
more people then just me can test it out and work on it.
2019-06-18 17:56:10 +01:00
Jakob Bornecrantz
b71e143eaa
d/psmv: Add PS Move driver
2019-06-18 17:56:10 +01:00
Benjamin Saunders
41ad2b872c
st/oxr: Accept nonnull subactionPaths when countSubactionPaths is 0
...
It's not clear that this is forbidden, and it can make the caller's
life a little easier.
2019-06-14 12:06:00 -07:00
pblack
286a826ff7
xrt: Update .gitignore
2019-06-13 17:56:41 +01:00
Ryan Pavlik
06cb5d680b
st/oxr: Check requested OpenXR API version.
...
Conformance.
2019-06-12 15:40:19 -05:00
Ryan Pavlik
0bdb4e4aeb
st/oxr: Unify checking of system ID, and do so in createSession
2019-06-12 15:40:19 -05:00
Ryan Pavlik
052728d515
st/oxr: Don't break on function unsupported errors.
2019-06-12 15:39:26 -05:00
Jakob Bornecrantz
4c6de83ea9
comp: Fix uninitialised errors from Valgrind
...
```txt
Conditional jump or move depends on uninitialised value(s)
at 0x6A5A7A0: vk_select_physical_device (comp_vk.c:847)
by 0x6A5AAF9: vk_create_device (comp_vk.c:916)
by 0x6A5CD82: compositor_check_vulkan_caps (comp_compositor.c:401)
by 0x6A5D659: comp_compositor_create (comp_compositor.c:656)
by 0x6A5F99B: xrt_gfx_vk_provider_create (comp_glue_vk.c:57)
by 0x6A78197: oxr_session_populate_vk (oxr_session_vk.c:32)
by 0x6A77E59: oxr_session_create_impl (oxr_session.c:536)
by 0x6A77F53: oxr_session_create (oxr_session.c:567)
by 0x6A6EA74: oxr_xrCreateSession (oxr_api_session.c:44)
by 0x2632A8: xrCreateSession (in hello_xr)
by 0x239F0D: (anonymous namespace)::OpenXrProgram::InitializeSession() (in hello_xr)
by 0x22ED25: main (in hello_xr)
Uninitialised value was created by a stack allocation
at 0x6A5CB05: compositor_check_vulkan_caps (comp_compositor.c:349)
```
2019-06-11 15:27:31 +01:00
Jakob Bornecrantz
8aec512de3
xrt: Update prober interface
2019-06-10 14:47:19 +01:00
Jakob Bornecrantz
89d8315b3b
xrt: Add output interfaces
2019-06-10 14:47:19 +01:00
Jakob Bornecrantz
1f64f714f6
xrt: Add input, hmd_parts and tracking interface
...
This patch has been spun of the rather massive amount of work for adding input
devices into Monado. The interfaces feels somewhat stable now so could do
with another pair of eyes on them, before too much work is done on st/oxr.
2019-06-10 14:47:19 +01:00
Jakob Bornecrantz
889c89590c
st/oxr: Implement action stubs in oxr_input.c
2019-06-10 14:47:05 +01:00
Jakob Bornecrantz
de6bf55116
aux/util: Add hashmap
2019-06-10 14:47:05 +01:00
Jakob Bornecrantz
2d6cb08c48
aux/util: Fix uninitialized errors
2019-06-10 14:15:53 +01:00
Christoph Haag
706e916bdb
build: Add ${OPENHMD_ROOT_DIR}/build to OpenHMD library search
2019-06-05 12:34:08 +02:00
Ryan Pavlik
acec80da2f
st/oxr: Fix graphics binding error codes/messages
2019-06-03 22:52:28 +00:00
Ryan Pavlik
dab52d319d
st/oxr: Support arbitrary next chains in session creation.
2019-06-03 22:52:28 +00:00
Ryan Pavlik
0a523bef05
st/oxr: Fix verifying XrSessionCreateInfo and graphics bindings structs.
...
Don't enforce next == NULL, and look through entire chain for structure
type enum, using oxr_chain.h
2019-06-03 22:52:28 +00:00
Ryan Pavlik
fa8047fed3
st/oxr: Add oxr_chain.h header
...
This should replace all manual poking of the next chain.
Prefer the macros over the functions since they'll do your casting for you.
2019-06-03 22:52:28 +00:00
Ryan Pavlik
e944bcb96f
st/oxr: Parenthesize macro args.
...
Found by upcoming modifications.
2019-06-03 22:52:28 +00:00
Ryan Pavlik
74065d49dd
st/oxr: Remove incorrect check in OXR_VERIFY_TYPE_AND_NULL
...
We are to ignore any unexpected types in a next chain.
2019-06-03 22:52:28 +00:00
Ryan Pavlik
9c979099e3
st/oxr: Fix some error message formatting in oxr_verify
2019-06-03 17:48:59 -05:00
Ryan Pavlik
0696203858
st/oxr: Document message style for oxr_error
2019-06-03 17:48:39 -05:00
Jakob Bornecrantz
c0008199ae
aux/util: Remove meta prober
2019-05-16 20:41:35 +01:00