~sircmpwn/kmscube

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.
7f065bcb — Keith Packard 6 years ago
Add xcb code to get a lease from the X server for our output.

Signed-off-by: Keith Packard <keithp@keithp.com>
8f5d22b1 — Keith Packard 6 years ago
Update to new drm lease API. Remove some sleeps.

Signed-off-by: Keith Packard <keithp@keithp.com>
b9c12bb6 — Keith Packard 6 years ago
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>
54dc8b83 — Keith Packard 6 years ago
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>
e877fcb0 — Eric Engestrom 6 years ago
drm-legacy.c: suppress 'unused parameter' warnings

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
0b18f36d — Eric Engestrom 6 years ago
drm-common.c: remove unused variable `gbm`

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
545e88ba — Eric Engestrom 6 years ago
drm-atomic.c: remove unused variables `gpu_fence_fd`, `kms_fence_fd`

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
0107e9ab — Eric Engestrom 6 years ago
drm-atomic.c: remove unused variables `i`

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
244ff668 — Eric Engestrom 6 years ago
drm-atomic.c: fix signed comparison

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
ce03463d — Eric Engestrom 6 years ago
cube-tex.c: fix signed comparison

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
52147437 — Eric Engestrom 6 years ago
kmscube.c: don't return uninitialized variable

`ret` isn't used by anything, so remove it as well.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
ce290304 — Emil Velikov 6 years ago
.gitignore: cleanups no-longer applicable files

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
5fc1f20c — Emil Velikov 6 years ago
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>
44e9aa27 — Emil Velikov 6 years ago
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>
24830fe3 — Emil Velikov 6 years ago
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>
f171ad4c — Emil Velikov 6 years ago
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.
803bac5a — Eric Engestrom 6 years ago
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>
Next