Commit Graph

221 Commits

Author SHA1 Message Date
Vaxry 3d96f96ce5 e 2024-09-24 00:46:29 +01:00
Vaxry f40d6ce4ae e 2024-09-23 19:03:55 +01:00
Vaxry afe8d2a2b9 eee 2024-09-23 19:00:05 +01:00
Vaxry 995543ed03 dispatch libinput on ready 2024-09-23 17:43:17 +01:00
Mihai Fufezan 752d0fbd14
Nix: fix cross-compilation 2024-09-18 16:14:17 +03:00
dawsers dc399a37d3
gbm: fix modifier list not updating when renderable list is empty (#84) 2024-09-17 14:29:08 +01:00
Vaxry e4a1320311 props: bump version to 0.4.1 2024-09-08 00:51:38 +01:00
Vaxry 9996d365ad gbm: don't select opaque pixel formats for cursor 2024-09-08 00:51:37 +01:00
Ikalco a8eb8ae014
drm: add AQ_NO_MODIFIERS to try to mitigate hardware limitations (#77) 2024-09-06 01:00:39 +01:00
Vaxry aac97a1fd1 version: bump to 0.4.0
also bump sover to 3
2024-09-02 11:16:50 +02:00
Ikalco dd9890d2bc
drm: allow disabling commit, even if pageFlipPending (#72) 2024-09-01 19:48:15 +02:00
Mihai Fufezan f8a687dd29
flake.lock: update 2024-09-01 17:11:21 +03:00
moetayuko e12b0a9c67
gbm: override gbm_bo_get_modifier results for modifier-based allocation (#71)
Fixes https://github.com/hyprwm/Hyprland/issues/7577
2024-09-01 12:03:52 +02:00
Vaxry 16bbbcba65 wayland: send 1280x720 if w/h is 0 in configure 2024-08-31 14:02:08 +02:00
Vaxry 865cd94f97 gbm/drm: conform to different scanout requirements for different planes
ref https://github.com/hyprwm/Hyprland/issues/7005
2024-08-31 13:52:04 +02:00
Vaxry b9ab839ab3 output: always emit a destroy event in ~dtor 2024-08-31 12:42:00 +02:00
Mihai Fufezan cff00196f0
flake.nix: remove libinput overlay 2024-08-30 14:09:59 +03:00
Ikalco 561f50bfae
drm: don't connect before crtcs are guaranteed (#68) 2024-08-29 15:51:04 +02:00
Vaxry 23c7925dd3 gbm: improve automatic format selection 2024-08-28 15:01:37 +02:00
Tom Englund 7cc3d3179c
misc: make for loops const reference (#66)
we all like the dreams and prayers that compilers can optimize things
further with const.
2024-08-27 20:04:26 +02:00
Ikalco abb3c81c59
drm: recheck crtcs before connecting on udev event (#65) 2024-08-26 20:36:16 +02:00
Vaxry 3989aa9b2f wayland: fix possible out-of-range crash in setCursor 2024-08-26 10:30:29 +02:00
Tom Englund ddf6987b53
backend: dont overflow on 32bit builds (#64)
make the definition long long as its used as long long later, only the
value was being calculated TIMESPEC_NSEC_PER_SEC * 240 and rolls over
before assigning to the variable.
2024-08-25 17:48:53 +02:00
Mihai Fufezan 31e692b20d
Nix: add note about wayland-scanner 2024-08-22 14:31:09 +03:00
romanstingler 9a3161ad4c
drm: fix typo in schedule (#62)
Co-authored-by: Roman Stingler <roman.stingler@waterdrop.com>
2024-08-21 21:59:51 +01:00
Tom Englund a17f9218d9
drm: add missing destructor (#63)
add missing default constructor to base class IDRMImplentation
2024-08-21 21:59:19 +01:00
Colt-M16A1 41d842669b
drm: request page flip events after commit (#60)
Apparently fixes stuff.
2024-08-21 20:36:34 +01:00
Vaxry 1c3256287c drm: verify output format in commit 2024-08-21 12:17:50 +02:00
Vaxry 2cd1f78241 GBM: fixup good() return value 2024-08-21 12:17:34 +02:00
Tom Englund b02d4f4d72
output: avoid crashing on no crtc (#58)
dual gpus can init with no crtc and later rescan for them, however
getRenderFormats might be called before that happends and null ptr
deref, guard against it.
2024-08-20 20:10:13 +01:00
Vaxry b474796cdb drm: reconfigure swapchain props after creating 2024-08-20 20:58:07 +02:00
Vaxry 1e43d9a719 gbm: improve trace logging around allocs 2024-08-20 19:09:03 +02:00
Vaxry 8079098326 drm: fix crash on null crtc setCursor
ref #54
2024-08-20 18:44:18 +02:00
Vaxry 00d51a053c props: bump version to 0.3.3 2024-08-19 20:21:51 +02:00
Vaxry 696a5ad4ec gbm: guard for drm renderer being present before clearing
ref #56
2024-08-19 18:26:38 +02:00
Florian Klink 71da3e00a0
CMakeLists: wayland.xml is in wayland-scanner pkgdatadir (#55)
See 6c4a695045/meson.build (L129-136)
2024-08-19 14:02:14 +01:00
Vaxry 7f8df01d42 props: bump version to 0.3.2 2024-08-18 20:36:13 +02:00
Vaxry 2bff4a4521
drm: don't schedule new frame events on disabled outputs (#52)
* drm: don't schedule new frame events on disabled outputs

* e

* test
2024-08-18 19:24:52 +01:00
Vaxry 2d29c86d69 drm: use modelines in vt restore 2024-08-18 20:15:46 +02:00
Vaxry 71d49670fe
drm: clear buffer on creation for scanout DRM buffers (#51) 2024-08-17 19:42:51 +01:00
Vaxry cd152140fd drm: don't report pointer capability when no HW cursor plane is present
ref https://github.com/hyprwm/Hyprland/issues/7364
2024-08-17 19:18:46 +02:00
Tom Englund 05f4efca81
buffer: align size to stride (#50)
calculate the size to the stride we get from gb_bo_map to better align
it.
2024-08-17 17:47:57 +01:00
Vaxry 4f6642808b drm: avoid crashes on connecting a null crtc 2024-08-16 09:06:27 +02:00
Vaxry e947af7894 drm/atomic: clip damage to pixel size
ref https://github.com/hyprwm/Hyprland/issues/7356
2024-08-15 22:34:45 +02:00
Vaxry 589346162f DRM: Allow checking no-crtc connectors (#49) 2024-08-15 18:01:37 +02:00
Vaxry 9312aa2827 docs: document AQ_DRM_DEVICES
fixes #47
2024-08-11 21:43:58 +02:00
Ziyao 9b33a38f86
cmake: link libOpenGL instead of legacy libGL (#44)
From cmake documentation, Linux-specific chapter:

  Projects may use the ``OpenGL::GL`` target (or ``OPENGL_LIBRARIES``
  variable) to use legacy GL interfaces.  These will use the legacy GL
  library located by ``OPENGL_gl_LIBRARY``, if available.  If
  ``OPENGL_gl_LIBRARY`` is empty or not found and GLVND is available,
  the ``OpenGL::GL`` target will use GLVND ``OpenGL::OpenGL`` and
  ``OpenGL::GLX`` (and the ``OPENGL_LIBRARIES`` variable will use the
  corresponding libraries).  Thus, for non-EGL-based Linux targets, the
  ``OpenGL::GL`` target is most portable.

which means linking with OpenGL::GL makes cmake find legacy libGL.so or
GLX libraries, and as for now, the former contains GLX symbols and cannot
be built without X libraries. Since we are working with EGL, it wouldn't
provide extra portability, either.

This patch switches to link aquamarine with modern OpenGL::OpenGL, which
contains core OpenGL API only, makes it possible to build on a
wayland-only system. Tested on eweOS, which is a distro without X
libraries.

Link: https://os.ewe.moe/

Signed-off-by: Yao Zi <ziyao@disroot.org>
2024-08-10 17:22:37 +01:00
Vaxry 295d37df17 props: bump version to 0.3.1 2024-08-09 20:32:21 +02:00
Vaxry daf96f0da7 drm: fixup modeline calculations 2024-08-09 19:20:25 +02:00
Vaxry c94060b22c drm: log calculated modeline for custom modes 2024-08-09 19:06:34 +02:00