Skip to content

Implement WMR render distortion and firmware configuration reading

Jan Schmidt requested to merge thaytan/monado:dev-wmr-distortion into master

This MR combines patches from !844 (closed) with an (at least for me on HP Reverb G2) more correct distortion implementation I prototyped previously. It reads the WMR firmware config and de-obfuscates it using a key derived directly from a collection of encoded firmware blobs. I think this should provide for calculating the correct rendering parameters for any WMR headset, although there is a second set of distortion parameters specifically in the HP Reverb G2 configuration that may allow better corrections later.

I have added a headset map to the code to make it easier to add more known WMR headsets that have custom init/deinit requirements (like the G2) in the future.

CC: @fraxul

Merge request reports