summaryrefslogtreecommitdiff
path: root/src/render/Renderer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* core: fix DS and VRR automation (#9334)UjinT342025-03-211-1/+2
|
* types: Upgrade buffer ref from WP to SP (#9677)Lee Bousfield2025-03-201-1/+1
|
* syncobj: restore SHM buffer reset (#9675)Tom Englund2025-03-201-8/+6
| | | | | reset shm buffers early to mitigate stuttering animations, also reuse the monitors eglSync and store the eglsync per monitor. this however reintroduces flickering in dbeaver nonsyncobj application.
* renderer: delete now redundant ifdefs (#9651)Honkazel2025-03-181-4/+0
| | | Hyprland for now requires aquamarine =>0.8.0 anyway
* syncobj: use eventfd instead of stalling fd checks (#9437)Tom Englund2025-03-141-16/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * syncobj: cleanup and use uniqueptrs cleanup a bit missing removals if resource not good, erasing from containers etc. make use of unique ptrs instead. and add default destructors. * syncobj: rework syncobj entirerly remove early buffer release that was breaking explicit sync, the buffer needs to exist until the surface commit event has been emitted and draw calls added egl sync points, move to eventfd signaling instead of stalling sync point checks, and recommit pending commits if waiting on a signal. add a CDRMSyncPointState helper class. move a few weak pointers to shared pointers so they dont destruct before we need to use them. * syncobj: queue pending states for eventfd eventfd requires us to queue pending stats until ready and then apply to current, and also when no ready state exist commit the client commit on the current existing buffer, if there is one. * syncobj: clear current buffer damage clear current buffer damage on current buffer commits. * syncobj: cleanup code and fix hyprlock remove unused code, and ensure we dont commit a empty texture causing locksession protocol and gtk4-layer-shell misbehaving. * syncobj: ensure buffers are cleaned up ensure the containers having the various buffers actually gets cleaned up from their containers, incase the CSignal isnt signaled because of expired smart pointers or just wrong order destruction because mishaps. also move the acquire/point setting to buffer attaching. instead of on precommit. * syncobj: remove unused code, optimize remove unused code and merge sync fds if fence is valid, remove manual directscanout buffer dropping that signals release point on pageflip, it can cause us to signal the release point while still keeping the current buffer and rendering it yet again causing wrong things. * syncobj: delay buffer release on non syncobj delay buffer releases on non syncobj surfaces until next commit, and check on async buffers if syncobj and drop and signal the release point on backend buffer release. * syncobj: ensure we follow protocol ensure we follow protocol by replacing acquire/release points if they arrive late and replace already existing ones. also remove unneded brackets, and dont try to manual lock/release buffers when it comes to explicit protocol. it doesnt care about buffer releases only about acquire and release points and signaling them. * syncobj: lets not complicate things set points in precommit, before checking protocol errors and we catch any pending acquire/release points arriving late. * syncobj: move SSurfaceState to types remove destructor resource destroying, let resources destroys them on their events, and move SSurfaceStates to types/SurfaceState.hpp * syncobj: actually store the merged fd have to actually store the mergedfd to use it. * syncobj: cleanup a bit around fences ensure the current asynchronous buffer is actually released on pageflip not the previous. cleanup a bit FD handling in commitPendingAndDoExplicitSync, and reuse the in fence when syncing surfaces. * syncobjs: ensure fence FD doesnt leak calling resetexplicitfence without properly ensuring the FD is closed before will leak it, store it per monitor and let it close itself with the CFileDescriptor class. * syncobj: ensure buffers are actually released buffers were never being sent released properly. * types: Defer buffer sync releaser until unlock * syncobj: store directscanout fence in monitor ensure the infence fd survives the scope of attemptdirectscanout so it doesnt close before it should have. * syncobj: check if if acquire is expired we might hit a race to finish on exit where the timeline just has destructed but the buffer waiter is still pending. and such we removeAllWaiters null dereferences. * syncobj: code style changes remove quack comment, change to m_foo and use a std::vector and weakpointer in the waiter for removal instead of a std::list. * syncobj: remove unused async buffer drop remove unused async buffer drop, only related to directscanout and is handled elsewhere. --------- Co-authored-by: Lee Bousfield <ljbousfield@gmail.com>
* renderer: add simple color management (#9506)UjinT342025-03-141-66/+29
| | | Adds proper color management and transformations for CM surfaces.
* renderer: skip ds commits if buffer didn't change (#9556)Ikalco2025-03-081-2/+2
| | | | this fixes direct scanout glitches by ensuring that attemptDirectScanout doesn't try to recommit the same buffer to AQ which would cause a pageflip event and the backendRelease to release the same buffer too early
* protocols: Support wp color management proto (#9444)UjinT342025-02-261-5/+9
| | | Adds support for the recently merged w-p CM protocol alongside the (now deprecated) old CM WIP protocols
* core: add an ANR dialogVaxry2025-02-181-0/+6
| | | | | | for xdg-shell, we can ping the wm_base, and thus render an ANR dialog if an app dies for XWayland, there probably is a similar method, but I don't know about it and don't care.
* renderer: remove spammy logVaxry2025-02-141-1/+0
|
* renderer: disable explicit if aquamarine output doesn't support it (#9396) ↵Anthony Ruhier2025-02-131-3/+11
| | | | | | | | | | (#9398) The explicit settings ignore the aquamarine output.supportsExplicit attribute, which creates glitches on drivers not supporting explicit sync (example: freedreno). If the output has been set as not supporting explicit, disable the explicit settings.
* renderer: fix fade out on silent moves to specialVaxry2025-02-061-3/+15
|
* renderer: fix missing null checks to prevent crashes (#9332)nyx2025-02-051-1/+3
|
* protocols: Support content-type-v1 proto (#9226)UjinT342025-02-021-1/+13
|
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * hyprctl: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * ikeyboard: make fd use CFileDescriptor make use of the new CFileDescriptor instead of manual FD handling, also in sendKeymap remove dead code, it already early returns if keyboard isnt valid, and dont try to close the FD that ikeyboard owns. * core: make SHMFile functions use CFileDescriptor make SHMFile misc functions use CFileDescriptor and its associated usage in dmabuf and keyboard. * core: make explicit sync use CFileDescriptor begin using CFileDescriptor in explicit sync and its timelines and eglsync usage in opengl, there is still a bit left with manual handling that requires future aquamarine change aswell. * eventmgr: make fd and sockets use CFileDescriptor make use of the hyprutils CFileDescriptor instead of manual FD and socket handling and closing. * eventloopmgr: make timerfd use CFileDescriptor make the timerfd use CFileDescriptor instead of manual fd handling * opengl: make gbm fd use CFileDescriptor make the gbm rendernode fd use CFileDescriptor instead of manual fd handling * core: make selection source/offer use CFileDescriptor make data selection source and offers use CFileDescriptor and its associated use in xwm and protocols * protocols: convert protocols fd to CFileDescriptor make most fd handling use CFileDescriptor in protocols * shm: make SHMPool use CfileDescriptor make SHMPool use CFileDescriptor instead of manual fd handling. * opengl: duplicate fd with CFileDescriptor duplicate fenceFD with CFileDescriptor duplicate instead. * xwayland: make sockets and fds use CFileDescriptor instead of manual opening/closing make sockets and fds use CFileDescriptor * keybindmgr: make sockets and fds use CFileDescriptor make sockets and fds use CFileDescriptor instead of manual handling.
* core: fix clang-formatVaxry2025-01-271-1/+2
|
* renderer: fix rare case when a tiled window would be rendered over fsVaxry2025-01-261-1/+1
|
* renderer/internal: stop using box pointersVaxry2025-01-261-13/+12
| | | | in favor of const refs
* desktop: move desktop types to memory-safe pointersVaxry2025-01-261-2/+2
|
* input: pass touch events to lock screens (#9129)Junxuan Liao2025-01-251-1/+1
| | | | | * refactor: use weak pointers for session lock surfaces * input: pass touch events to lock screens
* renderer: Auto enable wide color gamut in HDR mode (#9090)UjinT342025-01-171-9/+20
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+7
| | | Cleanup some unneeded includes to speed up compilation
* renderer: fix fullscreen hdr check (#9076)UjinT342025-01-161-1/+1
|
* protocols: allow hyprland-toplevel-export to capture hidden windows (#9041)outfoxxed2025-01-121-7/+7
|
* renderer: Do not set hdr metadata unless needed (#9014)UjinT342025-01-121-7/+16
|
* renderer: don't access hdrMetadata optional if it has no value (#8987)Maximilian Seidler2025-01-081-2/+3
|
* core: Add support for HDR and color management protocols (#8715)UjinT342025-01-071-0/+97
|
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-47/+47
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* renderer: Add supercircular window corners (#8943)Pollux2025-01-051-5/+6
| | | | | | | renderer: Add supercircular shadows and borders config: Add rounding_power to default and example configs rule: add `roundingpower` window rule
* renderer: fix CRendererHintsPassElement reset duplication issue (#8928)Raymond Bian2025-01-021-3/+6
|
* renderer: use a render pass for render modif in client rendervaxerski2025-01-011-18/+20
| | | | fixes #8918
* renderer: fix oversized blur precalcs not blurring at allvaxerski2024-12-301-0/+1
| | | | fixes #8839
* internal: few small monitor improvements (#8890)Ikalco2024-12-291-30/+14
| | | | | | | * remove framesToSkip, its not used anymore * only set drm format when needed after leaving direct scanout * always set drm damage
* core: refactor/improve monitor mode selection (#8804)Ikalco2024-12-281-416/+0
|
* renderer: allow plugins to know what window was rendered in postVaxry2024-12-221-1/+6
|
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-406/+397
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* core: fade in windows when they are brought from invisible workspacesVaxry2024-12-221-1/+1
|
* core: Add clang-tidy (#8664)Vaxry2024-12-071-20/+8
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* renderer: drop requesting OUT_FENCE_PTRVaxry2024-12-061-9/+1
|
* core: move colorspace handling to oklab (#8635)Vaxry2024-12-031-10/+10
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* renderer: restore discard mode after IME render passVaxry2024-11-281-0/+7
| | | | ref #8555
* renderer: fix incorrect early return (#8590)Agent00Ming2024-11-271-1/+1
| | | Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
* renderer: add option to blur IME popups (#8521)Ryan2024-11-231-1/+10
|
* core: workspace-related function cleanup / refactorVaxry2024-11-221-9/+9
| | | | CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
* renderer: fixup blur optimization considitonsvaxerski2024-11-201-1/+1
| | | | fixes #8531
* renderer: simplify blur enabling logicVaxry2024-11-171-8/+14
|
* renderer: don't render unmapped popupsVaxry2024-11-171-2/+2
| | | | fixes #8485
* renderer: add lockdead_screen_delay (#8467)Alexandre Acebedo2024-11-171-4/+5
|
* drm: enable explit out fence in AQ (#8431)UjinT342024-11-151-2/+3
|
* renderer: scaled surfaces could have zero area (#8423)dawsers2024-11-111-5/+5
|