Commit graph

6394 commits

Author SHA1 Message Date
Jakob Bornecrantz 7a9aa05d46 c/main: Let main compositor decide size of scratch image 2023-09-29 12:00:03 +01:00
Jakob Bornecrantz 84a0277ee7 c/render: Make srgb_view renderable for scratch images 2023-09-29 10:43:18 +01:00
Jakob Bornecrantz 29574dfea3 c/render: Refactor out a render pass object 2023-09-29 10:43:18 +01:00
Jakob Bornecrantz 7c512b2fc5 c/render: Refactor external render pass into a implicit one 2023-09-29 10:43:18 +01:00
Jakob Bornecrantz d4f3c794df c/render: Don't enable depth testing and writing for mesh shader
It's not used, so don't leave it on.
2023-09-29 10:43:18 +01:00
Jakob Bornecrantz 13edb14fc8 doc: Document !1961 2023-09-28 17:10:34 +01:00
Jakob Bornecrantz b6e5a89c97 u/pacing: Add minimum app margin 2023-09-28 15:23:46 +01:00
Jakob Bornecrantz 560265357b u/pacing: Rename wait time to gpu time [NFC] 2023-09-28 15:23:46 +01:00
Jakob Bornecrantz 21fd68e888 doc: Document !1967 2023-09-26 19:59:05 +01:00
Jakob Bornecrantz 6a007b2986 c/util: Fix subimage flipping 2023-09-26 19:57:28 +01:00
Ryan Pavlik 8422895b83 doc: Document !1966 2023-09-26 18:15:29 +01:00
Ryan Pavlik e1bb2221cc a/gstreamer: Trim includes in header 2023-09-26 11:37:41 -05:00
Jakob Bornecrantz 7cc46cd07d doc: Document !1959 2023-09-24 22:02:21 +01:00
Fernando Velazquez Innella 151e1aaf14 a/vk: Init vk bundle with shaderImageGatherExtended enabled if supported 2023-09-24 20:59:07 +00:00
Jakob Bornecrantz 9747ca149c doc: Document !1960 2023-09-23 18:34:03 +01:00
Jakob Bornecrantz ba08985126 a/vive: Fix use after free 2023-09-23 18:33:00 +01:00
Jakob Bornecrantz d9fe5eaf5d doc: Document !1957 2023-09-21 22:34:06 +01:00
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