Commit graph

69 commits

Author SHA1 Message Date
Pierre-Loup A. Griffais
3ca59feabd inputsdl: grab cursor when focused, send mouse input through X.
This more or less makes everything pretty playable.
2020-01-18 20:37:11 -08:00
Pierre-Loup A. Griffais
e1c4298d2a Rename project and executable to gamescope.
We're a superset of steamcompmgr now, but have a wider scope, so new
name to reflect it.
2020-01-14 17:35:36 -08:00
Pierre-Loup A. Griffais
6b3e2ddf68 DRM: multi-plane support via libliftoff.
Import libliftoff as subproject and plumb our planes through it.

Wait for a flip to complete immediately after queuing it for now.

Also immediately wait for cursor image uploads, as we don't have to
do Vulkan rendering anymore after queuing an upload.

Cursor shows up with format hack, but is badly corrupt. We might need
to use a DRM dumb_fb rather than going through the same Vulkan image.

Alpha bits of surfaces are ignored again, need to make Steam select
an ARGB visual for overlay windows, probably.

Setting up the "alpha" plane property somehow makes overlays not
show up at all despite liftoff happily letting us go with scanout.
2020-01-05 22:19:04 -08:00
Pierre-Loup A. Griffais
d357278b98 Add SDL input handling in the nested case, plumb basic mouse stuff.
Relative mouse broken right now.
2020-01-02 19:26:53 -08:00
Pierre-Loup A. Griffais
c70e71d1e2 I think I've come to terms with not building wlr stuff as C++.
Might as well clean up some of the initial madness.
2020-01-01 15:30:38 +09:00
Roman Gilg
bc042c70f5 build: do install executable
In order to launch the binary with for example Mesa being installed not into
the regular /usr prefix but into something like /opt the binary needs to be
launched from the install directory and not only directly from the build
directory.

So actually do install the executable.
2020-01-01 15:30:38 +09:00
Pierre-Loup A. Griffais
30d8582b62 Ding dong the witch is dead! 2020-01-01 15:30:38 +09:00
Pierre-Loup A. Griffais
445844e83f Bas rightfully points out the system wlroots dep isn't needed anymore. 2020-01-01 15:30:38 +09:00
Pierre-Loup A. Griffais
bfd02982ab Kill EGL with fire, rest of GL will follow shortly.
Working nested Vulkan path now using surface from SDL2 window.

For some definition of working, tile corruption there too.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
e61b20710e Enough Vulkan stuff to render to an image and flip it on screen.
No texturing yet, that's next after some surgery on the lump of code.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
2be0bdbcbb Start of Vulkan compute rendering code. Getting FBIDs (glxgears still OK). 2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
df5244f547 Keep track of in-flight flips in DRM-land to defer frees of fbids if needed.
This makes output sane now for Xwayland buffers.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
67c5affe47 Start of some DRM plumbing, make it work again outside of X. 2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
2bdbd01902 Some cleanup, 2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
11d50c1618 CHOP 2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
7e9bc2a6a0 Use patched static wlroots as a submodule and subproject.
That should help setting it up on a machine that might want to use normal
wlroots for other things. Resolve a GL symbol conflict now that we're
colocated with wlroots' dynamic loading code.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
b39c5a67d4 Hook up steamcompmgr output pipeline.
Get steamcompmgr's GL context from EGL and rip out GLX, as we need EGL to
import dma-bufs.

When new buffers are committed to surfaces, push their information to
steamcompmgr (without any feedback for now, fire-and-forget).

Can render games now.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
86efc186c5 Merge with rootston.
Enable C++ for bits of the code, but nothing that includes wlroots as that
doesn't want to build as C++.

Enable SubstructureRedirectMask mode and handle MapRequest for now; this lets
us get the WL_SURFACE_ID ClientMessages.

This uses a build of wlroots that has its internal XWM ripped out.
2020-01-01 15:30:37 +09:00
Pierre-Loup A. Griffais
137f0838e5 Add initial Meson build system, no install target yet. 2020-01-01 15:28:10 +09:00