Update drm lease protocol
Replace XCB DRM leasing with Wayland DRM leasing
Fix EGL surface creation on AMDGPU
We have to search for a suitable config, rather than assuming that the
first is correct.
Add xcb code to get a lease from the X server for our output.
Signed-off-by: Keith Packard <keithp@keithp.com>
Update to new drm lease API. Remove some sleeps.
Signed-off-by: Keith Packard <keithp@keithp.com>
Multi-threaded DRM mode lease demo
Threads make it easier to debug than processes. All of the global data
had to be eliminated before I could get this working, hence all of the
changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Hacked up to demonstrate DRM leases
Forks and draws on two different outputs from two instances.
Not actually working yet.
Signed-off-by: Keith Packard <keithp@keithp.com>
configure.ac: remove no-longer applicable m4 folder
With the removal of libtool as of last commit we no longer need the m4
folder or any of the related infra.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac: remove unused AC_PROG_LIBTOOL
We're creating a single binary with no static/shared libraries.
We implicitly relied on the macro to pull AC_PROG_CC, so we should add
it now, otherwise configure will fail.
As a nice bonus, with the last three commits combined the execution time
of autogen.sh drops by more than half.
before after
real 0m7.965s 0m3.661s
user 0m4.530s 0m1.280s
sys 0m0.280s 0m0.070s
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac: remove useless AC_CONFIG_* macros
Namely:
AC_CONFIG_SRCDIR - it's used to "help" people who deliberatelly override
--srcdir. Nobody should be doing this to begin with, so just let them
get what they're asking for.
AC_CONFIG_HEADERS - we don't have any conditionals, function or macro
checks. Hence we don't need the header.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac: wire -Wall -Wextra directly into the build
Both flags are widely available and the rest of MAYBE_WARN are of little
interest. Since atm no flags were passed, we might as well not bother
with anything but the former two.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
This will prompt some warnings, but we can sort this at a later stage.
drm-common.h: forward-declare needed structs
drm-common.h:63:49: warning: ‘struct egl’ declared inside parameter list will not be
visible outside of this definition or declaration
int (*run)(const struct gbm *gbm, const struct egl *egl);
^~~
drm-common.h:63:26: warning: ‘struct gbm’ declared inside parameter list will not be
visible outside of this definition or declaration
int (*run)(const struct gbm *gbm, const struct egl *egl);
^~~
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>