Simon Ser
a4f3a19480
Fix VkDescriptorPoolCreateInfo.poolSizeCount
...
This caused a read past the array end on anv.
2021-05-04 18:34:11 +02:00
Simon Ser
b6f5471b62
Allow toggling g_bRotated more easily
...
Allow just changing the default variable value to enable rotation.
2021-05-04 16:40:58 +02:00
Pierre-Loup A. Griffais
902fce73b0
steamcompmgr: flip the meaning of -x
...
It wasn't actually causing crashes and the memory stomp is fixed.
The option only existed for a very short time and didn't do anything
useful, so should be safe.
2021-05-02 23:51:37 -07:00
Pierre-Loup A. Griffais
580a17d462
steamcompmgr: get the appID from the process tree
...
In case we can't get it proactively from the app process.
2021-05-02 23:51:37 -07:00
Joshua Ashton
8afb3c3f30
Handle swapchain recreation for out of date and suboptimal
2021-05-01 16:51:00 -07:00
Joshua Ashton
e818aec744
Move to combined samplers and rewrite composite shader in GLSL
...
Cleans up the composite shader significantly as well as it uses
arrays of descriptors/samplers now.
This all gets unrolled as the loop is spec-constant sized.
2021-05-01 16:50:51 -07:00
Joshua Ashton
f537a40483
Use SOA instead of AOS for layers
...
Produces better code as the shader compiler can load
multiple layers with a single buffer_load at a time
due to the positioning and alignment.
2021-05-01 16:50:51 -07:00
Pierre-Loup A. Griffais
496b5f58d2
wlserver: downgrade wlserver_surface_set_wl_id assert to spew
2021-04-30 18:45:00 -07:00
Simon Ser
6f54b51a6c
Fix cursor not using linear layout
2021-04-30 16:28:07 +02:00
Simon Ser
bf5123e19b
Log errors in CVulkanTexture::BInit
2021-04-30 16:25:14 +02:00
Simon Ser
d1ff01c134
Make args const in drm_prepare
2021-04-30 16:18:29 +02:00
Pierre-Loup A. Griffais
2bb4907993
Also spew wayland display name through session pipe.
2021-04-27 21:17:36 -07:00
Simon Ser
a85c8d761c
Fix planes offset/stride for multi-planar buffers
...
References: https://github.com/Plagman/gamescope/issues/49
2021-04-23 10:51:22 +02:00
Simon Ser
3a6895a4b8
Add more error messages
2021-04-23 10:45:17 +02:00
Simon Ser
c9b5000812
Don't query COLOR subresource layout with modifiers
...
According to the spec, this is invalid:
> If the tiling of the image is VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then
> the aspectMask member of pSubresource must be
> VK_IMAGE_ASPECT_MEMORY_PLANE_i_BIT_EXT
This triggers an assertion in anv.
References: https://github.com/Plagman/gamescope/issues/49
2021-04-23 10:45:17 +02:00
Simon Ser
cb0eace6d1
Use libliftoff by default
...
Remove the -l option. Introduce a -L option to disable libliftoff.
Don't use the same option to avoid muscle memory issues.
2021-04-22 21:55:22 +02:00
Simon Ser
a99c5f7a1c
Don't set R600_DEBUG=nodcc if Vulkan supports modifiers
...
This can cause issues with Xwayland. Setting R600_DEBUG=nodcc
prevents Xwayland from being able to import DCC buffers coming
from Vulkan clients.
Closes: https://github.com/Plagman/gamescope/issues/185
2021-04-22 19:36:37 +02:00
Simon Ser
3b9f845dad
Unify getopt string
...
De-duplicate its definition, so that we don't forget to update a
string when we update the other.
2021-04-21 14:38:54 +02:00
Simon Ser
910fba1008
rendervulkan: add NV12 support
...
This doesn't yet display correct colors, and tiling artifacts are
visible.
2021-04-20 09:13:10 +02:00
Simon Ser
5f36d1060c
rendervulkan: log supported DRM formats
2021-04-20 09:13:10 +02:00
Simon Ser
b3f3f6c92d
rendervulkan: log whether DRM modifiers are supported
2021-04-20 09:13:10 +02:00
Simon Ser
0aa74266c4
Relax Vulkan import plane check
...
Try to import multi-planar textures even if we don't have a
modifier. This is the case for e.g. DMA-BUFs coming from VA-API.
2021-04-20 09:13:10 +02:00
Simon Ser
be735e9360
Set GAMESCOPE_WAYLAND_DISPLAY
...
This allows gamescope-specific Wayland clients to connect to the
Wayland server, while preventing regular Wayland clients from doing
so.
2021-04-20 09:13:10 +02:00
Simon Ser
a05e5b0a39
Implement gamescope-xwayland protocol
2021-04-20 09:13:10 +02:00
Simon Ser
6f8e25dc89
Add gamescope-xwayland protocol
2021-04-20 09:13:10 +02:00
Simon Ser
10816e6ed8
wlserver: adjust assertion in wlserver_surface_set_wlr
...
Make sure we don't overwrite an existing surf->wlr. We don't really
care about the Wayland surface ID here.
2021-04-20 09:13:10 +02:00
Simon Ser
ce0a3f7259
Rename wlserver_surface_set_id to wlserver_surface_set_wl_id
...
Make it clear the ID refers to a Wayland object.
2021-04-20 09:13:10 +02:00
Simon Ser
db14ce1eeb
readme: use shell syntax for example comments
2021-04-16 12:15:09 +02:00
Simon Ser
f66c8057f6
readme: format keyboard shortcuts as a list
2021-04-16 12:13:39 +02:00
Simon Ser
bfe9777abc
readme: improve formatting a bit
2021-04-16 12:13:06 +02:00
Simon Ser
f283207ced
readme: document end-user options
2021-04-16 12:12:17 +02:00
Simon Ser
1a8a4bdcf5
readme: R600_DEBUG=nodcc is only required on GFX8-
2021-04-16 12:03:41 +02:00
Simon Ser
bee939e691
build: force-enable xwayland in wlroots subproject
...
This should give a better error message if xwayland deps are missing.
2021-04-10 10:23:24 +02:00
Simon Ser
e76d82828b
build: update wlroots system dep version
2021-04-08 09:27:10 +02:00
Simon Ser
25a0a75811
build: simplify wlroots xwayland check
2021-04-08 09:26:17 +02:00
Simon Ser
21ab0dd372
Add .editorconfig
2021-04-08 09:15:39 +02:00
Sefa Eyeoglu
ed44909813
Update wlroots to 0.13.0
...
Update usage of wlr_headless_backend_create,
wlr_renderer_get_shm_texture_formats,
wlr_texture_from_pixels and add missing include for render/egl.h.
2021-04-08 09:15:05 +02:00
Simon Ser
c834999a5f
Introduce wlserver_surface
2021-04-02 08:37:53 +02:00
Simon Ser
4f24653d77
Add support for multi-planar DMA-BUF Vulkan export
2021-04-01 19:06:08 +02:00
Simon Ser
a900bef8b8
Query plane 0 layout with VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT
2021-04-01 18:17:04 +02:00
Simon Ser
ff33a3738e
Query image modifier on Vulkan DMA-BUF export
2021-04-01 18:03:18 +02:00
Simon Ser
b8ab5a74ee
rendervulkan: add support for legacy wl_drm buffers
...
There are still clients (e.g. steam) not supporting modifiers at
all.
2021-04-01 17:41:06 +02:00
Simon Ser
df18c40815
Only advertise scanout capable modifiers
2021-04-01 17:41:06 +02:00
Simon Ser
26a25b1d29
Pass list of modifiers when allocating with Vulkan
...
This allows us to remove the wsi_image_create_info hack when
modifiers are supported.
References: https://github.com/Plagman/gamescope/issues/51
2021-04-01 13:13:38 +02:00
Sefa Eyeoglu
774002483b
fix: update liftoff log initialisation
...
Also: Update liftoff dependency to b08bbaa5e6331ed2
("Split liftoff_log_init into set_handler and set_priority")
The callback parameter was moved into a different method, though it is
not needed in this case as we didn't give it one before.
2021-03-31 14:25:39 +02:00
Pierre-Loup A. Griffais
7dfb55c8a8
steamcompmgr: disable XRes1.2 support by default.
...
Can re-enable it once an XRes release with this fix has been tagged for a bit:
https://gitlab.freedesktop.org/xorg/lib/libxres/-/merge_requests/1?commit_id=3e6bdd90c604e061c71715865eb403ffdd0dd7f0
Or users can use -x for now.
2021-03-30 18:11:27 -07:00
Pierre-Loup A. Griffais
5936baa865
steamcompmgr: make cursor hide time configurable, -C in ms
2021-03-24 20:35:33 -07:00
Simon Ser
8f9a284d32
Print error if poll fails in imageWaitThreadMain
2021-03-12 19:19:25 +01:00
Simon Ser
29d00dbc68
tracing: use {begin,end}_ctx helpers, remove unnecessary newlines
2021-03-11 11:25:34 +01:00
Simon Ser
36c8b983ee
drm: fix missing flag in drmModeAddFB2WithModifiers call
...
That's a nice footgun right here.
2021-03-05 16:04:45 +01:00