Simon Ser
9f3e152d13
Wait for POLLIN instead of POLLOUT
...
POLLIN waits for the buffer to be ready for reading, POLLOUT waits
for writing.
In gamescope we're reading client buffers, so we need to use POLLIN.
We were using POLLOUT to workaround an amdgpu bug, but that got
fixed in kernel 5.15, so shouldn't be necessary anymore.
2022-12-20 10:12:52 +00:00
Simon Ser
bdd08a7b44
rendervulkan: print DRM format name
2022-12-09 13:32:18 +01:00
Joshua Ashton
7aef264dfc
wlserver: Fix crash on Steam startup sometimes
...
Don't leave the pending surface list entry on the x11_surface_info in a bad state when it's only destroyed on the wayland side.
2022-12-07 18:47:54 +00:00
Sam Lantinga
d5ea069dc3
Merge pull request #701 from slouken/master
...
Fixed NV12 format negotiation
2022-12-06 15:38:29 -08:00
Sam Lantinga
2d885378fd
Fixed stride calculation for NV12 pipewire stream
2022-12-06 10:39:06 -08:00
Sam Lantinga
5038f50f10
Make sure we don't set the pipewire state to running if there was an error during startup
2022-12-06 10:37:55 -08:00
Joshua Ashton
01998fedfb
layer: Add gamescope_wsi layer
2022-12-06 01:25:38 +00:00
Joshua Ashton
c0cb4c336c
steamcompmgr, drm: Add GAMESCOPE_DISPLAY_EDID_PATH atom
2022-12-06 01:25:38 +00:00
Joshua Ashton
dff1b3f390
wlserver: Allow late binding of content overrides
2022-12-06 01:25:38 +00:00
Joshua Ashton
d394ae402f
wlserver: Rename wlr in wlserver_x11_surface_info to main_surface
2022-12-06 01:25:38 +00:00
Joshua Ashton
eec3517fde
wlserver: Move commit handler to wl_surface_info
2022-12-06 01:25:38 +00:00
Joshua Ashton
dd3f14be83
protocol: Expose client protocol headers too
2022-12-06 01:25:38 +00:00
Joshua Ashton
ffffc87f6d
build: Add vkroots dep
2022-12-06 01:25:38 +00:00
llyyr
212638e9d0
wlserver: fix pointer scroll in nested mode
2022-12-05 11:56:53 +01:00
Simon Ser
5a9bf10c81
drm: make g_drmEffectiveOrientation atomic
...
It's accessed from multiple threads.
2022-11-29 11:19:05 +01:00
Simon Ser
3f03b0c392
drm: fix enum mixup in g_drmEffectiveOrientation
2022-11-29 11:15:48 +01:00
Simon Ser
bb67298e95
wlserver: stop using surface role
...
Instead use a regular commit listener.
Fixes the following error:
(EE)
Fatal server error:
(EE) [destroyed object]: error -1: surface was destroyed before its role object
(EE)
2022-11-29 11:09:09 +01:00
Joshua Ashton
48ba04f7f8
steamcompmgr: Bump down focus priority of disabled windows
2022-11-26 06:44:24 +00:00
Jason Aunkst
b7b41a7bf2
fix issue with sdl touch_ids being out of range
2022-11-25 21:21:58 +01:00
Jason Aunkst
fc71041c3e
fix issue with sdl touch_ids being out of range
2022-11-25 21:21:58 +01:00
Simon Ser
be5e7d23e4
wlserver: fix missing commit events
...
Set role_data to a non-NULL pointer. A NULL pointer indicates to
wlroots that the role is destroyed, and wlroots skips invoking the
commit handler in that case.
2022-11-25 21:18:11 +01:00
Simon Ser
f4a33bd37e
build: use hwdata's pkg-config file
...
Ensures the system has the proper dependency, and avoids hardcoding
the path.
2022-11-24 19:58:38 +01:00
Joshua Ashton
91fbb22bda
wlserver, ime: Port to wlroots 0.16.0
...
Co-authored-by: Simon Ser <contact@emersion.fr>
2022-11-24 19:56:17 +01:00
Simon Ser
f1195b7439
build: remove wayland-protocols dep from executable
...
wayland-protocols is just a bunch of XML files, no point in trying
to link to it.
2022-11-23 13:09:36 +01:00
Joshua Ashton
4f422b7492
rendervulkan: Default to bt601 limited for mtx stuff
2022-11-22 01:19:07 +00:00
Joshua Ashton
a5a6d511d2
pipewire: Hook up colorspaces
2022-11-22 01:15:30 +00:00
Joshua Ashton
0e4d6b17f8
rendervulkan: Add stream colorspace property to CVulkanTexture
2022-11-22 01:13:47 +00:00
Joshua Ashton
0b8c53dcbd
rendervulkan: Add vulkan_acquire_screenshot_texture DRMFormat param
2022-11-22 01:08:35 +00:00
Joshua Ashton
b3205caec4
rendervulkan: Fix srgb-ness + use color space matrix for rgb to NV12 pass
2022-11-22 01:02:12 +00:00
Joshua Ashton
d85d0a1525
pipewire: Remove format assertion
...
No longer true
2022-11-22 00:07:08 +00:00
Joshua Ashton
8755aa0523
rendervulkan: Fix RGB blit path for screenshot textures
2022-11-21 23:52:58 +00:00
Joshua Ashton
57cba0107a
pipewire: NV12 path for pipewire
2022-11-21 22:12:34 +00:00
Joshua Ashton
aeffc39ab0
rendervulkan: Make mappedData() return a uint8_t
2022-11-21 21:08:23 +00:00
Joshua Ashton
f7a23ef808
rendervulkan: Add lumaPitch/chromaPitch to CVulkanTexture
2022-11-21 21:06:50 +00:00
Joshua Ashton
b5b1589d45
drm: Add some nullptr checks for drm->connector
2022-11-20 20:26:58 +00:00
Georg Lehmann
ed48ef3b05
rendervulkan: Fix a typo
...
How did I not see this before 🐸 .
2022-11-19 17:46:19 +01:00
Georg Lehmann
a038985ee4
rendervulkan: Update push sizes.
2022-11-19 16:14:08 +00:00
Joshua Ashton
50d385d326
rendervulkan: Introduce CaptureConvertBlitData_t
...
Stores the half-extent for the NV12 blit
2022-11-19 00:46:21 +00:00
Joshua Ashton
98220bdf3f
steamcompmgr: Fix build
...
Typo before committing >.>
2022-11-19 00:45:28 +00:00
Joshua Ashton
30519fd9ec
rendervulkan: Add NV12 capture blit infra
...
Performs blit + rgb -> nv12 in one.
2022-11-19 00:39:05 +00:00
Joshua Ashton
dba8480d18
main: Set GamescopeUpscaleFilter::LINEAR to 0
2022-11-15 20:01:51 +00:00
Joshua Ashton
2791466692
wlserver: Handle default in apply_touchscreen_orientation
...
We use this for VR now!
2022-11-10 04:34:17 +00:00
Joshua Ashton
c10eb7dcd7
rendervulkan: Eliminate blur radius spec constant
2022-11-10 04:34:11 +00:00
Joshua Ashton
c61db3c49c
rendervulkan: Limit number of pre-compiled ycbcr masks
2022-11-10 04:33:49 +00:00
Joshua Ashton
989806791f
main: Add --adaptive-sync commandline arg
...
Enables VRR if the display is capable if this flag is set.
Closes : #199
2022-11-08 03:14:24 +00:00
Simon Ser
f374689a4e
drm: use drmModeConnectorGetPossibleCrtcs
...
This function has been upstreamed in libdrm.
2022-11-04 12:48:18 +01:00
Simon Ser
7b5a338e7e
drm: remove connector type table
...
We can just rely on libdrm instead.
2022-11-04 12:48:18 +01:00
Georg Lehmann
5ef7d0cb66
rendervulkan: Enable VK_KHR_swapchain_mutable_format when nessecary.
2022-11-03 20:36:02 +00:00
Georg Lehmann
c1fd2d7f7a
rendervulkan: Fix validation errors for linear swapchain view.
...
VK_FORMAT_B8G8R8A8_SRGB doesn't support STORAGE usage.
Otherwise we hit asserts in mesa.
2022-11-03 20:36:02 +00:00
Joshua Ashton
a7f8b26833
wlserver: Add thread name to wlserver
2022-10-31 01:35:31 +00:00