Commit graph

6177 commits

Author SHA1 Message Date
Jakob Bornecrantz 82192a43f9 ipc: Generate limited unique ids for native swapchains 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz 151b3005d5 c/util: Generate limited unique ids for native swapchains 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz f27cb14669 u/limited_unique_id: Add process unique id generator 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz 22770320f2 xrt: Add limited unique id to native swapchains 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz b6a80f0fd9 xrt: Add xrt_limited_unique_id 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz e501116d87 c/main: Trace mirror blit function 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz 15743d822b st/gui: Refactor a few OpenGL drawing code into helper 2023-09-21 22:34:06 +01:00
Jakob Bornecrantz bde2dce2b6 st/gui: Improve thread safety, improve comments and spelling 2023-09-21 22:00:07 +01:00
Jakob Bornecrantz 53f510e6b9 st/gui: Rename file with OpenGL sink functions [NFC] 2023-09-21 00:39:03 +01:00
Jakob Bornecrantz d2d505d9e3 ext/imgui: Add function to draw image with background color 2023-09-21 00:39:03 +01:00
Jakob Bornecrantz 05a3f3e055 ext/imgui: Remove unnecessary braces [NFC] 2023-09-20 16:57:10 +01:00
Jakob Bornecrantz fe8c4116ec t/sdl_test: Use helper to import images 2023-09-20 16:50:58 +01:00
Jakob Bornecrantz 95e1c9c8dd a/ogl: Add helper to import native images 2023-09-20 16:50:58 +01:00
Jakob Bornecrantz 1a543cb0c0 a/ogl: Add Vulkan to OpenGL conversion function 2023-09-20 16:50:58 +01:00
Jakob Bornecrantz 3c1d8dafaa a/ogl: Put comment in group [NFC] 2023-09-20 16:50:58 +01:00
Jakob Bornecrantz 51e5c2820a doc: Document !1955 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz 141e598295 c/render: Optimize layer shader 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz bd38e90b51 c/main: Use new helpers to dispatch compute 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz a5792222a4 c/util: Add helpers to fully dispatch compute pipeline 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz ee2fe9fd40 c/[render|main]: Refactor scratch images
This commit does a few things:

* Makes the scratch images per view
* Introduces a new struct that is managed by the renderer
2023-09-20 16:41:30 +01:00
Jakob Bornecrantz fed360e98b c/[render|util|main]: Refactor layer squasher code
This commit does a couple of things in one go.

* The layer squasher now dispatches once per view.
  * Reducing the number of samplers needed.
  * Allows for per view target.
* Refactor the setup code to comp_util.
* The layout transition part now happens in new helper code.

On my system this change is very marginally slower,
around 0.05ms and 0.1ms slower on average.
2023-09-20 16:41:30 +01:00
Jakob Bornecrantz dd21f3c7ec c/render: Explain how we get the direction [NFC] 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz 7996013e4d c/render: Rename defines to proper prefix [NFC] 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz 7441a9bda6 c/render: Better names for descriptor sets [NFC] 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz 50adb87d79 c/util: Tweak cmake [NFC] 2023-09-20 16:41:30 +01:00
Jakob Bornecrantz 322c652691 doc: Document !1920 2023-09-20 15:37:34 +01:00
Jakob Bornecrantz 6860fcc7ba c/client: Tidy D3D12 whitespace [NFC] 2023-09-20 15:37:34 +01:00
Jakob Bornecrantz 768cc06a8e c/client: Tidy call [NFC] 2023-09-20 15:37:34 +01:00
Fernando Velazquez Innella 9918e55fbf c/client: Use native d3d12 allocator.
Includes a workaround for D3D12 and Vulkan interop issues in NVidia
hardware. We want to directly allocate in D3D12 to be able to use all
resource flags during creation, such as multi-gpu ones.
2023-09-20 15:37:34 +01:00
Fernando Velazquez Innella 6342c72665 a/d3d: Add native d3d12 allocator and copy helpers.
Add a D3D12 allocator and helper code to copy from shadow images,
the copy is needed to work around a interop issue on NVIDIA hardware.

Co-authored-by: Ryan Pavlik <ryan.pavlik@collabora.com>
2023-09-20 14:10:40 +00:00
Jakob Bornecrantz 84ac7b14be doc: Document !1956 2023-09-17 16:00:44 +01:00
Jakob Bornecrantz 740ff1bcf5 c/render: Stop timewarp stretching by changing math
Tested-by: BabbleBones <BabbleBones@protonmail.com>
2023-09-17 16:00:27 +01:00
Jakob Bornecrantz bcccc0ff1f doc: Document !1953 2023-09-13 20:32:37 +01:00
Ryan Pavlik 5b0f7cb5ef c/main: Fix doxygen warning
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-09-13 20:29:36 +01:00
Ryan Pavlik a57c7a2408 xrt: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik 2398dc6ca4 t/common: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik aa2cc78396 st/oxr: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik 63b18384dc d/nreal_air: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik a66aeca91a c/client: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik c458ed6fee d/steamvr_lh: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik 3b1eb21e9f a/vk: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik 74914f35d5 a/util: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Ryan Pavlik 5fc532d23f a/tracking: Fix doxygen warnings 2023-09-13 20:21:57 +01:00
Jakob Bornecrantz 7fb06198cf doc: Document !1951 2023-09-13 20:13:20 +01:00
Jiali Zhang baf6c7f78d st/oxr: Implementation of XR_KHR_android_thread_settings 2023-09-13 20:13:20 +01:00
Jakob Bornecrantz 54017f6b3e c/multi: Add stub set thread hint function 2023-09-13 20:04:52 +01:00
Jiali Zhang 81a094f990 ipc: Add support for thread hint function 2023-09-13 20:04:49 +01:00
Jiali Zhang faec524709 xrt: Add thread hint function 2023-09-13 20:03:17 +01:00
Jakob Bornecrantz 3696586441 doc: Document !1917 2023-09-13 17:33:55 +00:00
Jakob Bornecrantz 3de99b63d9 ipc: Add a interface header for ipc_server_main[_android] 2023-09-13 17:33:55 +00:00