Commit Graph

94 Commits

Author SHA1 Message Date
Tom Englund 8fc0c549b7 output: avoid crashing on no crtc
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 21:03:25 +02:00
vaxerski 696a5ad4ec gbm: guard for drm renderer being present before clearing
ref #56
2024-08-19 18:26:38 +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
vaxerski 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
vaxerski 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
vaxerski 4f6642808b drm: avoid crashes on connecting a null crtc 2024-08-16 09:06:27 +02:00
Vaxry 589346162f DRM: Allow checking no-crtc connectors (#49) 2024-08-15 18:01:37 +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
Vaxry 1a7ca38fa3 drm: fix custom mode check 2024-08-09 18:02:03 +02:00
Vaxry 21f9c44789 drm: don't use explicit in blit without explicit requested from user 2024-08-06 13:19:53 +02:00
Vaxry 8a8afd3896 drm: add AQ_MGPU_NO_EXPLICIT 2024-08-05 16:42:03 +02:00
Vaxry 6f5adc0568 drm: s
upport explicit sync with multi-gpu destinations

will break o
n mgpu nvidia before 560 driver
2024-08-05 00:27:09 +02:00
Vaxry a70fc6a2fd drm: avoid testing with a pf event 2024-08-03 19:10:09 +02:00
Vaxry 18c6a8ccaf drm: immediately send presentation events for tearing 2024-08-03 18:23:24 +02:00
Vaxry 7c3565f9be drm: don't rollback cursors on test 2024-07-30 15:55:39 +02:00
Samuel Cobb f95d150937
drm: Follow symlinks for AQ_DRM_DEVICES (#34) 2024-07-26 12:17:06 +01:00
Vaxry 353dc1b729 drm: conform to both renderable and scanoutable formats in scanout buffers
fixes #28
2024-07-24 22:41:58 +02:00
Khiet Tam Nguyen e569340c6b
drm: ignore primary argument when using evdi drivers (#25)
* fix: ignore primary if using evdi drivers for displaylink

* style: removed curly braces from evdi if-check
2024-07-24 20:14:29 +02:00
Vaxry 07eb70afb1
gbm: Nvidia fixes for scanout gbm allocation (#27)
* nv fixes

* fix
2024-07-24 18:41:13 +02:00
UjinT34 7a84686b4a
output: remove redundant needsFrame, allow skip on mouse event (#21) 2024-07-20 20:56:18 +02:00
Vaxry acfea3bd1d drm: reject modeless commits 2024-07-20 16:58:42 +02:00
Vaxry af219a0a2c drm: avoid a crash when no cursor plane is present 2024-07-20 15:55:18 +02:00
Vaxry 35e00a4a9d buffer: add backendLock 2024-07-19 11:29:50 +02:00
Vaxry 9d7c69cde2 drm: minor improvements to crtc rechecks 2024-07-18 22:53:05 +02:00
Vaxry a6f1ad1560 drm: fixup cursor fb rotation cases 2024-07-18 12:30:49 +02:00
JManch dcac376308
drm: fix crash for connectors without a fallback mode (#20) 2024-07-18 11:09:17 +02:00
Vaxry 5b34d0df1f drm: attempt to re-modeset if commit fails
however, keep track of this so we don't attempt to modeset all the time on an invalid state
2024-07-18 00:06:04 +02:00
Vaxry 2dc8ba961c drm: accept mgpu tests early to avoid a blit 2024-07-17 23:13:39 +02:00
Ikalco db417a49e8
drm: handle monitor hotplugs and fix a few bugs that it revealed (#14)
* handle monitor hotplugs and fix a few bugs that it revealed

* fix cursorFB uaf and other stuf
2024-07-15 20:03:00 +02:00
Ikalco ad8261ba99
api: add getting monitor render formats (#13) 2024-07-14 11:06:13 +02:00
Vaxry 2efe4296f8 drm: fix build on 32b archs
fixes #5
2024-07-13 22:56:46 +02:00
Vaxry 8d73016db8 drm/renderer: use the duped fd for gl 2024-07-12 23:23:39 +02:00
Vaxry 5199868794 drm: reopen allocator node for mgpu 2024-07-12 21:25:53 +02:00
Vaxry 05219d5287 drm: reopen DRM node to avoid KMS refcounting issues 2024-07-12 20:53:11 +02:00
vaxerski f3c6b673f9 drm: return render formats properly on mgpu 2024-07-12 16:46:26 +02:00
vaxerski 27008ef767 drm: avoid using unsupported modifiers for mgpu 2024-07-12 16:32:08 +02:00
vaxerski 13cf43497e drm: avoid crash on nullptr cursors 2024-07-12 15:52:23 +02:00
Vaxry ee0dea62e2 drm/renderer: also use blitting for cursor planes 2024-07-12 10:48:59 +02:00
Vaxry f485ad7546 drm: guard connector in calculateMode 2024-07-11 23:06:26 +02:00
Vaxry d619af4971 drm: better handle drm blits 2024-07-11 22:17:57 +02:00
Vaxry c4a5fafe76 drm: properly blit multigpu surfaces 2024-07-11 20:41:57 +02:00
Vaxry d92d55d454 drm: handle mismatched formats in commit 2024-07-11 12:19:41 +02:00
Vaxry 965f429b29 drm: avoid crashes on non-existent modes in restoring after vt 2024-07-10 12:28:38 +02:00
Vaxry e3f2c0d5cc drm: split allocators per drm device 2024-07-09 14:10:52 +02:00
Vaxry bd6da3bec6 drm: always rescan connectors after rechecking crtcs 2024-07-09 10:31:01 +02:00
Vaxry 05995dd21e drm: reset boHandles after freed in fb 2024-07-08 23:04:12 +02:00
Vaxry 3c118519e6 drm: reimport cursor fb on multigpu 2024-07-08 21:22:56 +02:00
Vaxry ef43e5174b drm: drop buffers from KMS on .destroy 2024-07-08 18:45:59 +02:00