summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
Commit message (Collapse)AuthorAgeFilesLines
* hdr: scRGB, HLG and SDR -> HDR fixes (#11499)UjinT342025-08-221-17/+22
|
* render: include numbers header (#11475)Linux User2025-08-191-0/+1
| | | Fixes error `no member named 'numbers' in namespace 'std'` on llvm/musl
* internal: unify VT gettingvaxerski2025-08-141-5/+3
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-34/+34
|
* renderer: apply default luma for reverting back to srgbVaxry2025-08-021-5/+8
| | | | fixes #11315
* screencopy: un-hdr screencopy buffers for cm-unaware clients (#11294)Vaxry2025-07-311-5/+9
|
* opengl: improve render fn arg clarity (#11286)Vaxry2025-07-311-88/+126
|
* renderer: use CRegion foreach over getRects (#10980)Tom Englund2025-07-301-32/+32
| | | | instead of allocating and returning a vector, use forEach to directly call a function on the rects.
* core: disable esync for non-linux kernelsVaxry2025-07-291-0/+5
| | | | ref #10437, BSD doesn't support timeline fds
* ci: correct tar command for xz compression & fix typos (#11213)xqso2025-07-251-1/+1
|
* internal: replace unsafe strcpy with snprintf (#11128)MirzaSamadAhmedBaig2025-07-201-2/+1
|
* opengl: detect android fence support and disable explicit if it's missing ↵Vaxry2025-07-191-1/+16
| | | | | (#11077) Checks for explicit sync support via the android fences, and falls back to implicit sync if it isn't
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-101-4/+4
| | | | | lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
* renderer: Added a pointer position uniform to the screen shader. (#10821)FrancisTheCat2025-07-081-3/+19
|
* opengl: avoid reallocations in EGLImage (#10960)Tom Englund2025-07-071-21/+24
| | | | | use a std::array instead of vector and avoid reallocations. it should at most be 49 entries, so make the array 50. and RASSERT check it incase more entries gets added in the future.
* pass: overload TexPass constructorTom Englund2025-07-071-2/+2
| | | | | overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable.
* opengl: add missing skipcm if case (#10888)Tom Englund2025-07-011-0/+6
| | | | | missing skipcm if case so the CM uniforms where never added on the gradient2 renderBorder case, until the non gradient2 one had run atleast once. causing it to not render on first launch/delayed.
* renderer: reduce a lot of glcalls and cache various states (#10757)Tom Englund2025-06-251-378/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * opengl: cache viewport state according to nvidia docs calling glViewPort unnecessarily on the same already set viewport is wasteful and can cause state changes when not needed. cache it in a struct and only call it when the viewport is actually changing. * opengl: cache glenable/gldisable state avoid making multiple glenable/gldisable calls on already set caps, can cause state changes and incur driver overhead. * opengl: cache glscissor box only call glscissor if the box actually has changed, try to avoid state changes. * opengl: cache gluniform calls cache the gluniform calls, the uniform values are cached in driver per program only the drawcalls setting the uniform yet again with the same value on same location is causing more overhead then caching it ourself and just no oping on it if no changes. * shader: rewrite handling of uniforms and state this is way faster as we don't need to mess with maps (hashing, etc) and instead can just use an array * opengl: stuff and 300 shaders * opengl: typo * opengl: get the uniform locations properly now that the legacy shaders are gone get the uniformlocations for SKIP_CM etc, so they can be properly set and used depending on if cm_enabled is set to false or true, before it was falling back to a legacy shader that didnt even have those uniforms. * opengl: check epsilon on float and remove extra glcall seems an extra unset glcall was added, remove it. and check the float epsilon on the glfloat. * opengl: remove instanced shader draw remove the instanced boolean from the vertex shader, might be neglible differences, needs more benchmark/work to see if its even worth it. * texture: cache texture paramaters parameters where occasionally set twice or more on same texture, short version wrap it and cache it. and move gpu churn to cpu churn. add a bind/unbind to texture aswell. * texture: use fast std::array caching cache the texparameter values in fast array lookups and incase we dont want it cached, apply it anyways. * shader: fix typo and hdr typo actually use Matrix4x2fv in the 4x2fv cache function, and send the proper float array for hdr. * texture: make caching not linear lookup make caching of texture params not linear. * minor style changes * opengl: revert drawarrays revert the mostly code style reduce loc change of drawarrays, and focus on the caching. its a if else case going wrong here breaking blur/contrast amongst others drawing. --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* renderer: add wrapping options to renderTextureWithBlur method (#10807)zacoons2025-06-211-5/+6
|
* renderer: make lock fail textures dynamically loadedVaxry2025-06-191-8/+26
| | | | this should reduce idle vram usage by a whopping 16MB, but also might fix the tty unknown issue.
* config/monitor: Add monitor v2 HDR rules (#10623)UjinT342025-06-151-4/+4
|
* opengl: use a stack for storing monitor transform enabledVaxry2025-06-151-18/+31
| | | | fixes #10487
* internal: Fix HyprError not displaying at startup (#10606)Kamikadze2025-06-011-1/+0
|
* internal: refactor to use empty() (#10599)Kamikadze2025-05-311-6/+6
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-4/+4
|
* renderer: add wrapping options to renderTexture method (#10497)zacoons2025-05-211-5/+6
|
* core: drop the legacy renderer (#10408)Tom Englund2025-05-151-101/+6
| | | | | | | | | | | * core: drop the legacy renderer the legacy renderer is broken and barely used, drop it. * Nix: drop support for legacyRenderer --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* opengl: add missing vao for screenshader (#10397)Tom Englund2025-05-131-0/+1
| | | | missed creating vertex array objects in 04124988e8b4a9cdfc5995388ebfaad0005b4b31 add it.
* opengl: optimize shaders and reduce unneeded drawcalls (#10364)Tom Englund2025-05-111-93/+66
| | | | | | | | | | | | | | | | | | | | | | | * opengl: remove unnecessery glflush calls glflushing forces the driver to break batching and issue commands prematurely and prevents optimisations like command reordering and merging. many glFunctions already internally glflushes and eglsync creation still has a glflush at end render. so lets reduce the overhead of these calls. * opengl: reduce glUseProgram calls apitrace shows cases where the same program gets called multiple times, add a helper function that keeps track of current program and only call it once on same program. reduces slight overhead. * opengl: use more efficient vertex array object use a more modern vertex array object approach with the shaders, makes it a onetime setup on shader creation instead of once per drawcall, also should make the driver not have to revalidate the vertex format on each call.
* renderer: render blur on fade out (#10356)Vaxry2025-05-101-5/+7
|
* renderer: always render snapshots as 8bitvaxerski2025-05-091-4/+6
| | | | fixes issues with transparent windows on 10b
* opengl: fix legacyrendererVaxry2025-05-081-2/+2
|
* refactor: cshader class to sshader struct (#10324)davc0n2025-05-081-8/+8
|
* render: refactor class member vars (#10292)davc0n2025-05-051-501/+501
| | | | | * render: refactor class member vars * render: fix clang format
* protocols: refactor class member vars (core) (#10259)davc0n2025-05-031-9/+9
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-117/+120
|
* render: properly release rendered buffers (#9807)Ikalco2025-04-301-44/+35
| | | | | | | | | * cleanup eglSync * properly release buffers in renderer * add renderingDoneCallback and use it in screencopy * use static constructor for CEGLSync
* cm: Use precomputed primaries conversion (#9814)UjinT342025-04-291-8/+23
|
* windows: refactor class member vars (#10168)davc0n2025-04-281-14/+14
|
* workspaces: refactor class member vars (#10167)davc0n2025-04-251-4/+4
|
* layers: refactor class member vars (#10149)davc0n2025-04-241-3/+3
| | | | | * layers: refactor class member vars * popups: rename m_WLSurface to m_wlSurface
* groupbar: Add options for setting group bar title font weight (and indicator ↵M Matthew Hydock2025-04-241-3/+3
| | | | gap) (#9617)
* compositor: refactor class member vars (#10141)davc0n2025-04-221-9/+8
|
* config: Refactor class member vars (#10124)davc0n2025-04-201-10/+10
| | | | | * Refactor config classes vars * Fix clang format errors
* render, helpers: Call OpenGL destroyMonitorResources on disconnect (#10111)Lee Bousfield2025-04-181-2/+3
| | | | | * render, helpers: Call OpenGL destroyMonitorResources on disconnect * helpers: Add opengl null check
* windowrules: allow incrementing window props (#9566)MightyPlaza2025-04-161-0/+1
|
* pass: revert "remove renderer finalDamage since it's unused (#9996)" (#10039)Vaxry2025-04-111-3/+7
| | | This reverts commit 0a7e2cb152a11db35aa134fad0919bc939f16bae.
* pass: remove renderer finalDamage since it's unused (#9996)Ikalco2025-04-091-7/+3
|
* Permission Manager: add permission management for screencopy (#9930)Vaxry2025-04-081-0/+2
|
* 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.