Commit Graph

79 Commits

Author SHA1 Message Date
Samuel Cobb c5fecd24af
Merge branch 'hyprwm:main' into hacking 2024-07-25 23:15:58 +01:00
Samuel Cobb a8a13eb88a add includes 2024-07-25 22:37:26 +01:00
Samuel Cobb 58012329de resolve to canonical path 2024-07-25 22:24:59 +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
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
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
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
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 d048d1c644 drm: lease support 2024-07-05 19:21:40 +02:00
Vaxry c5cf93a3cc backends: fix needsFrame being stuck 2024-07-05 14:24:10 +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