Commit Graph

199 Commits

Author SHA1 Message Date
Vaxry 3c118519e6 drm: reimport cursor fb on multigpu 2024-07-08 21:22:56 +02:00
Vaxry 157f067cf8 gbm: emit deestroy before destroying bo 2024-07-08 20:21:37 +02:00
UjinT34 0ce4b193cf
gbm: fix gbm buffer creation (#9) 2024-07-08 19:47:06 +02:00
Vaxry ef43e5174b drm: drop buffers from KMS on .destroy 2024-07-08 18:45:59 +02:00
Vaxry d69569698e drm: add log for rescan after alloc 2024-07-08 18:38:41 +02:00
Vaxry 5f9f0601c3 drm: fix log 2024-07-08 18:37:49 +02:00
Vaxry acba4aa037 drm: avoid sending state to non-existent outputs 2024-07-08 17:20:41 +02:00
Vaxry 42585b413d drm: do not assign many crtcs to single port 2024-07-08 17:20:18 +02:00
flk 65d70c7a30
CMakeLists: require native hyprwayland-scanner (#8)
This would fix a cross-compile issue where hyprwayland-scanner is pulled in for
target but needs to run on host.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
2024-07-08 17:06:10 +02:00
Vaxry 56e7659ad8 drm: recheck CRTCs after launch and reset 2024-07-08 15:57:16 +02:00
Vaxry dc1181a65e drm: fix epic string parsing fail 2024-07-07 23:19:11 +02:00
UjinT34 a473c5313d
output: add scheduleFrame reasons (#7) 2024-07-07 18:05:05 +02:00
Jan Beich 946c756414 cmake: add epoll-shim for some BSDs
ld: error: undefined reference due to --no-allow-shlib-undefined: timerfd_create
>>> referenced by libaquamarine.so.0.1.0
2024-07-07 16:10:40 +03:00
Jan Beich 92b4b01501 cmake: allow using any build directory
$ cmake -B /tmp/aquamarine_build
$ cmake --build /tmp/aquamarine_build
[...]
src/backend/drm/DRM.cpp:25:10: fatal error: 'hwdata.hpp' file not found
   25 | #include "hwdata.hpp"
      |          ^~~~~~~~~~~~
2024-07-07 16:10:40 +03:00
Jan Beich 5d08afba5a Add missing headers for BSDs
src/allocator/GBM.cpp:137:17: error: use of undeclared identifier 'close'
  137 |                 close(attrs.fds.at(j));
      |                 ^
src/allocator/GBM.cpp:159:9: error: use of undeclared identifier 'close'
  159 |         close(attrs.fds.at(i));
      |         ^
src/backend/Session.cpp:141:5: error: use of undeclared identifier 'close'
  141 |     close(fd);
      |     ^
src/backend/Wayland.cpp:44:9: error: use of undeclared identifier 'close'
   44 |         close(fd);
      |         ^
src/backend/Wayland.cpp:63:9: error: use of undeclared identifier 'close'
   63 |         close(drmState.fd);
      |         ^
src/backend/Wayland.cpp:658:13: error: use of undeclared identifier 'close'
  658 |             close(fd);
      |             ^
src/backend/Wayland.cpp:668:13: error: use of undeclared identifier 'close'
  668 |             close(fd);
      |             ^
src/backend/Wayland.cpp:676:9: error: use of undeclared identifier 'close'
  676 |         close(fd);
      |         ^
2024-07-07 16:10:40 +03:00
Vaxry d8525fbd63 drm: check for timeline support for explicit sync 2024-07-06 17:45:47 +02:00
Vaxry 330c089cd8 drm: add support for explicit sync 2024-07-06 17:38:18 +02:00
Mihai Fufezan bb8743d9be
flake.lock: update 2024-07-06 16:22:07 +03:00
Tom Englund 263cb161da
allocator: add missing virtual destructor (#3)
add missing virtual destructor to base class and free gbm device on
destruction of CGBMAllocator
2024-07-06 14:57:27 +02:00
Vaxry 29c415a4f5 drm: nullcheck output in reset 2024-07-06 11:30:47 +02:00
Vaxry ea92cba414 backends: set needsFrame for manually scheduled frames 2024-07-06 11:26:42 +02:00
Vaxry 890d6177b2 cmake: require hw-s 0.4.0 2024-07-05 23:46:50 +02:00
Vaxry d048d1c644 drm: lease support 2024-07-05 19:21:40 +02:00
Tom Englund 2a3ff6a61d
formatutils: ensure we dont leak name ptr (#2)
store format name in a std::string and free the char ptr to ensure we
dont leak on each call to drmGetFormatName.
2024-07-05 15:18:44 +02:00
Vaxry c5cf93a3cc backends: fix needsFrame being stuck 2024-07-05 14:24:10 +02:00
Vaxry d3bacb4600 swapchain: add rollback 2024-07-04 23:13:23 +02:00
Vaxry 8d1d10397a drm: don't shift state on failed commits 2024-07-04 23:11:18 +02:00
Vaxry 205472bad7 drm: fix vrr checks 2024-07-04 15:33:46 +02:00
Mihai Fufezan 1844da3814
Nix: overlay libinput 1.26 until merged in Nixpkgs 2024-07-03 20:43:43 +03:00
Vaxry e6ba21bbdc cmake: fixup min versions in deps 2024-07-03 19:37:24 +02:00
Vaxry f48653cf0e session: Tablet support
woo
2024-07-03 19:12:17 +02:00
Vaxry a0cfad9ec0 session: clear libinput devices before unrefing libinput
thanks @ikalco
2024-07-03 12:49:12 +02:00
Vaxry 4ca125d05a drm: set fbs on vt restore
thanks @ikalco
2024-07-02 23:06:03 +02:00
Mihai Fufezan f770d88860
Nix: add hwdata dep 2024-07-02 19:53:21 +03:00
Vaxry 41194ed860 docs: add env 2024-07-02 14:43:50 +02:00
Vaxry 2f220d9301 logging: add AQ_TRACE for omitting trace logs 2024-07-02 14:42:24 +02:00
Vaxry 874183997f backend: idle fd improvements 2024-07-02 14:32:41 +02:00
Vaxry 04b2db8350 cmake: require hwdata 2024-07-02 13:16:00 +02:00
Vaxry 20a99be9f4 drm: implement edid parsing 2024-07-02 13:15:56 +02:00
Vaxry 7e4ae2e226 drm/atomic: add support for gamma ramps 2024-07-02 12:41:32 +02:00
Vaxry 0eb28d40f0 drm: log vrr capabilities in connect 2024-07-02 12:11:54 +02:00
Vaxry b758c5c6d5 README: update state 2024-07-01 20:42:25 +02:00
Mihai Fufezan 0bc6b4e450
CI: disable tests 2024-07-01 19:14:37 +03:00
Vaxry d1e48322ed wayland: avoid leaving the swapchain null on late displays 2024-07-01 14:59:16 +02:00
Vaxry 13f94112aa core: allow specifying names for outputs 2024-07-01 14:52:50 +02:00
Vaxry 51cd6f4374 Headless: Add backend 2024-07-01 14:33:05 +02:00
Vaxry b8fc53e69d wayland: handle close events 2024-07-01 13:06:41 +02:00
Mihai Fufezan aadc5dd5e6
CI/Nix: init 2024-07-01 10:54:19 +03:00
Mihai Fufezan 19c19d36e9
Nix: init 2024-07-01 10:52:16 +03:00
Vaxry cef415f033 drm/legacy: avoid crashing on missing crtcs 2024-06-30 21:43:18 +02:00