summaryrefslogtreecommitdiff
path: root/src/render
Commit message (Collapse)AuthorAgeFilesLines
...
* ctm: enable fade animation on nvidia driver versions 575 and above (#10095)fazzi2025-04-181-35/+2
| | | | | * ctm: enable fade animation on nvidia driver versions 575 and above * format if statement without braces; handle potential throw when checking for nvidia version file
* render, helpers: Call OpenGL destroyMonitorResources on disconnect (#10111)Lee Bousfield2025-04-182-3/+4
| | | | | * render, helpers: Call OpenGL destroyMonitorResources on disconnect * helpers: Add opengl null check
* time: move to stl's clocks and move timerVaxry2025-04-164-60/+49
|
* windowrules: allow incrementing window props (#9566)MightyPlaza2025-04-162-0/+2
|
* framebuffer: Fix framebuffer size check (#10068)psyvern2025-04-131-1/+1
|
* pass: revert "remove renderer finalDamage since it's unused (#9996)" (#10039)Vaxry2025-04-114-10/+21
| | | This reverts commit 0a7e2cb152a11db35aa134fad0919bc939f16bae.
* pass: remove renderer finalDamage since it's unused (#9996)Ikalco2025-04-094-21/+10
|
* Permission Manager: add permission management for screencopy (#9930)Vaxry2025-04-082-0/+4
|
* core: refactor and improve surface commit (#9805)Ikalco2025-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * make CHLBufferReference not a SP anymore * copy over release and acquire points in CHLBufferReference * use CHLBufferReference in screencopy and toplevel export TODO: use CHLBufferReference in direct scanout properly the only problem is the scanout buffer release timing, specifically the onBackendRelease mechanism * cleanup SSurfaceState and surface pending commit tracking * move surface code from DRMSyncobj, and move acquire to SSurfaceState * use queue for comitted pending surface states like proto says "The content update is placed in a queue until it becomes active." - wl_surface::commit * drop, not release, prev buffer if 2nd buffer wl_surface.attach is sent "A wl_buffer that has been attached and then replaced by another attach instead of committed will not receive a release event, and is not used by the compositor." - wl_surface::attach
* groupbar: add text offset and upper gap settings (#9733)Arkady Buryakov2025-04-021-5/+8
| | | | | * Groupbar: add keep_upper_gap setting to apply/remove outer gap offset to the upper side of groupbar * Groupbar: add text_offset setting to adjust text vertical position in a group header
* renderer: render tiled fading out above other tiled windowsVaxry2025-04-011-1/+13
| | | | | | fixes #9717 closes #9796
* opengl: check for g_pHyprOpengl pointer (#9791)Tom Englund2025-03-291-1/+1
| | | | restore the pointer check to avoid null ptr dereference on compositor destruction.
* renderer/opengl: Extract shaders from source (#9600)UjinT342025-03-2930-1068/+1501
| | | | | --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* internal: fix minor ubsan errors (#9743)Tom Englund2025-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | * opengl: check if g_pHyprOpengl exist on compositor destruction we can hit a race where a CEGLSync destructs and tries to call eglDestroySyncKHR on a null g_pHyprOpengl. /src/render/OpenGL.cpp:3019:32: runtime error: member access within null pointer of type 'struct CHyprOpenGLImpl' #0 0x555565eed979 in CEGLSync::~CEGLSync() /src/render/OpenGL.cpp:3019 #1 0x555565f6271e in std::default_delete<CEGLSync>::operator()(CEGLSync*) const /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/unique_ptr.h:93 * xdgshell: dont apply state on empty states setsize can be called before a state has been added to pending, resulting in calling ApplyState with a empty state. /src/protocols/XDGShell.cpp:323:11: runtime error: null pointer passed as argument 2, which is declared to never be null #0 0x5555659bf67e in CXDGToplevelResource::applyState() /src/protocols/XDGShell.cpp:323 #1 0x5555659bcedc in CXDGToplevelResource::setSize(Hyprutils::Math::Vector2D const&) /src/protocols/XDGShell.cpp: 256 #2 0x555563eed0ef in Events::listener_commitWindow(void*, void*) /src/events/Windows.cpp:841
* opengl: don't attempt to compile cm on gles3.0Vaxry2025-03-262-47/+60
| | | | | | also disable the error for the cm shader fixes #9738
* pass/rect: include clipBox in opaque calculationsvaxerski2025-03-261-1/+9
| | | | ref #9730 ref #9709
* groupbar: round boxesvaxerski2025-03-261-2/+2
|
* pass: remove unusued timeline in texpass (#9734)Tom Englund2025-03-262-4/+1
| | | | | remove unused timeline and waitpoint in texpass and especially remove the passing it to renderTextureInternalWithDamage that implicitly converted it to bool. setting discardActive and allowCustomUV
* Groupbar: apply scaling factor to text (#9731)Arkady Buryakov2025-03-261-1/+1
|
* decoration: bring back border_part_of_windowVaxry2025-03-241-1/+3
| | | | fixes #9683, now under decoration: though
* renderer: Simplify and fix hdr metadata setting (#9706)UjinT342025-03-242-14/+36
| | | | | * simplify and fix hdr metadata setting * keep incorrect(?) cm skip till #9600
* renderer: fix cm_fs_passthrough (#9698)UjinT342025-03-222-9/+12
|
* core/compositor: Correctly track SHM buffer damage (#9678)Lee Bousfield2025-03-222-10/+12
|
* screencopy, render: Use explicit sync for screencopy (#9697)Lee Bousfield2025-03-221-21/+21
| | | | | | | * screencopy, render: Use explicit sync for screencopy * screencopy: Check if explicit sync is enabled * screencopy: Don't require explicit KMS enabled
* 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.
* groupbar: remove 2 pixel gap above groupbar (#9664)phonetic1122025-03-191-1/+1
|
* renderer: add an option to disable cm and auto-skip cm if not necessaryvaxerski2025-03-181-5/+10
| | | | | | fixes #9641 adds render:cm_enabled default true
* renderer: delete now redundant ifdefs (#9651)Honkazel2025-03-181-4/+0
| | | Hyprland for now requires aquamarine =>0.8.0 anyway
* groupbar: remove recursive window recalc (#9561)nyx2025-03-171-1/+0
|
* opengl: simplify cm pipelineVaxry2025-03-163-80/+73
| | | | | | fixes a few mistakes, and skips the CM shader in cpu instead of adding a costly branch ref #9641
* renderer: don't crash if cm fails to compileVaxry2025-03-142-45/+51
|
* syncobj: use eventfd instead of stalling fd checks (#9437)Tom Englund2025-03-144-78/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-147-101/+614
| | | Adds proper color management and transformations for CM surfaces.
* groupbar: add an option to adjust gap sizes (#9578)phonetic1122025-03-121-24/+30
|
* groupbar: pass alpha to title tex render passVaxry2025-03-111-0/+1
| | | | ref #9598
* 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
* hyprctl/config: fixup config descriptions, fill out missing ones, provide ↵Vaxry2025-02-252-12/+2
| | | | | | more data adds current and explicit, better parsing, and fixes missing / invalid ones
* core: add an ANR dialogVaxry2025-02-182-5/+17
| | | | | | 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-132-4/+12
| | | | | | | | | | (#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.
* animations: sync inactive/active border angles when using borderangle ↵Maximilian Seidler2025-02-131-0/+5
| | | | animations (#9401)
* groupbar: fix groupbar missing when indicator_height is <= 0Vaxry2025-02-091-97/+99
| | | | ref #9291 #9372
* renderer: various fixes towards improving gpu calls robustness (#9188)Tom Englund2025-02-085-36/+38
| | | | | | | | | | | | | | ensure framebuffer textures are detached and deleted, avoid leaving framebuffers bound when not needed * render: avoid calling glDeleteProgram on no program its safe to do so but it adds a bunch of unnecessery lines in apitrace when tracing. if guard it and return early. * opengl: ensure texture and buffers are unbound ensure bound buffers are unbound after use, also detach textures from framebuffer before deleting it otherwise it will become dangling and essentially leak.
* renderer: fix fade out on silent moves to specialVaxry2025-02-061-3/+15
|
* window: move size reporting to animation begin callback (#9298)Maximilian Seidler2025-02-061-3/+0
| | | | | | | | | | | | | | | | | * window: fix resizes with an update callback * window: fixup sendWindowSize Remove the size argument from sendWindowSize, since it is now a member of the Window class and we don't want any mismatches between m_vRealSize and what we report. Remove sendWindowSize from mapWindow, since we shouldn't need it. * window: sendWindowSize on animation begin * window: move most calls to sendWindowSize to the animation begin callback * window: remove sendWindowSize in unmanaged if not fullscreen
* core: avoid .at() and use [] operator (#9347)Tom Englund2025-02-061-4/+4
| | | avoid .at() where it makes sense and use [] operator in loops.
* renderer: fix missing null checks to prevent crashes (#9332)nyx2025-02-051-1/+3
|