path: root/src/lib/ecore_drm (unfollow)
AgeCommit message (Collapse)Author
2020-06-23Get rid of trailing whitespaces (4 / 14)Elyes HAOUAS
Remove trailing whitespaces Differential Revision:
2020-06-10ecore_drm: check return of drmModeSetCrtc()Stefan Schmidt
Report if we fail to reset the Crtc during output free. Only print an error and keep going with the rest of the output free. CID: 1402668 Reviewed-by: Christopher Michael <> Differential Revision:
2020-05-18systemd - make libsystemd use/supprot entirely runtime "dlopened"Carsten Haitzler (Rasterman)
so i've moved all systemd and elogind support to be runtime only with dlopen (eina_module) of (or for elput) and finding of symbols manually at runtime (if the right code paths or env vars are set), thus remvoing the need to decide at compile time if efl needs systemd support or not as it no longer needs systemd headers/libs at compile time and just at runtime. this simplifies building a bit and makes efl more adaptive to the final target system at runtime.
2020-05-05ecore_drm: ensure we have the symbol available at the right place.Stefan Schmidt
Summary: Linking under Fedora32 toolchain got more picky. Ecore_drm_device.c needs the symbol so make sure we have it there. Reviewers: devilhorns, raster Reviewed By: raster Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision:
2020-04-29doxygen docs: Fix missing links in Ecore_DrmXavi Artigas
Ecore_Drm_Input had SOME docs, so a group for them is created. Ecore_Drm_Sprite had NO DOCS at all, so the link is just removed. This is a deprecated library anyway.
2020-04-20doxygen docs: Fix all invalid @param namesXavi Artigas
There were quite a few of these...
2019-08-11eldbus - fix leak of message in error path caseCarsten Haitzler (Rasterman)
fix CID 1402657
2019-08-05ecore drm legacy - fix dbus leaks of reply handleCarsten Haitzler (Rasterman)
fix CID 1402664
2019-08-05ecore drm - legacy - fix coverity leak complaintCarsten Haitzler (Rasterman)
is real - in error case. fix it to make coverity happy. fix CID 1402696
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <> Differential Revision: Depends on D7011
2018-01-04efl: remove _MSC_VER (Visual Studio macro) usage in source codeVincent Torri
2017-11-12libinput check - move up to requiring 1.6 as a minimum for libinputCarsten Haitzler (Rasterman)
2017-03-09ecore_drm: avoid crash during shutdown due to Ecore_Event queue.Cedric BAIL
2017-02-27docs: Fix typos and some wrong expressionsMyoungwoon Roy, Kim
Covers: Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Summary: I had fixed some typos and wrong expressions, such as capital letters, singular Etc. in Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Test Plan: Doxygen Revision Reviewers: stefan, cedric, raster, jpeg, Jaehyun_Cho Subscribers: conr2d Differential Revision:
2016-05-31ecore-drm: Deprecate Ecore_Drm libraryChris Michael
Small patch to deprecate Ecore_Drm. This patch also adds a configure option to enable ecore_drm for older code. This option is disabled by default, so must be explicitly specified during build. Signed-off-by: Chris Michael <>
2016-05-13ecore_drm: Handle wheel scrolling separately from finger scrollingDerek Foreman
Wheels are discrete and scroll in clicks, fingers are continuous and scroll in fractional pixels. This change causes wheel based scrolling to be returned in "clicks" instead of "degrees" - allowing us to roll a single menu item with a click. It also will allow us to reduce the speed of two finger scrolling without messing up the speed of wheel scrolling.
2016-05-10ecore-drm: Fix potential segfault when setting output modeChris Michael
If a NULL mode is passed into ecore_drm_output_mode_set, then we try to disable the given output. If disabling the output fails, we were trying to print an ERR message which tried to access the NULL mode. @fix Signed-off-by: Chris Michael <>
2016-05-06ecore_drm: Fix off by 1000 in output rate calculationDerek Foreman
This results in wayland wl_output modes having their refresh rates 1000x too high, which has the magical effect of making some native Qt apps fail with a GTK error when Xwayland crashes on 32-bit systems. @fix Fixes T3587
2016-04-27ecore-drm: reuse any created xkb map if no cached map existsMike Blumenkrantz
this prevents creating many identical maps during init
2016-04-26ecore-drm: Add missing initializer for fb2 commandChris Michael
drm_mode_fb_cmd2 has fields for a modifier to handle tiling, compression, etc (per plane). Even tho we do not use these, we should at least initialize them to zero else we end up with uninitialized bytes in the cmd structure. ==11706== Syscall param ioctl(generic) points to uninitialised byte(s) ==11706== at 0x57E05D9: ioctl (in /usr/lib/ ==11706== by 0x4D30FA3: drmIoctl (in /usr/lib/ ==11706== by 0x4CDF66B: _ecore_drm_fb_create2 (ecore_drm_fb.c:63) @fix Signed-off-by: Chris Michael <>
2016-04-21ecore-drm: Fix typo in doxygenChris Michael
Signed-off-by: Chris Michael <>
2016-04-13ecore-drm: Don't leak object propertiesChris Michael
When fetching possible planes for an output, we end up leaking object properties here as these were never freed. @fix Signed-off-by: Chris Michael <>
2016-04-01ecore-drm: do not attempt to destroy sprite outputs which have never repaintedMike Blumenkrantz
silences a surprisingly large number of errors on shutdown @fix
2016-03-14ecore_drm: Disable custom tick if we can't wait for vblankDerek Foreman
If we fail to schedule a VBlank event, then we should disable custom ticks and fallback to timer-based animators. This patch fixes some issues with Intel Atom based setups where rendering would fail when using custom animators. @fix
2016-03-11ecore_drm: Update device copy of framebuffer after page flip completesDerek Foreman
The device struct is API, so its copy of the fb pointer needs to be kept in sync with the output struct's. We do this when the flip completes to try to prevent access to an fb that's about to flip. This fixes Enlightenment screenshots. @fix
2016-03-09ecore-drm: don't set DBG on log level if DBG not already setMike Blumenkrantz
2016-03-09ecore-drm: Disable default DBG log levelChris Michael
Simple patch to disable setting ecore-drm log level to DBG by default @fix Signed-off-by: Chris Michael <>
2016-03-09ecore-drm: Don't re-include config.hChris Michael
As ecore_drm_private.h already includes config.h header, we don't need to include it here in these files also @fix Signed-off-by: Chris Michael <>
2016-03-09ecore-drm: Update copyright noticeChris Michael
As portions of this code have been derived from existing code in Weston, we should also be including their copyright/licence text to give credit. NB: Fixes T3286 @fix Signed-off-by: Chris Michael <>
2016-02-22ecore-drm: Don't reset event modifiers on touch motionChris Michael
When we are sending an event for touch motion, we should be specifing the modifers in the event structure (not setting them to zero). @fix Signed-off-by: Chris Michael <>
2016-02-18ecore_drm: Check list presence by NULL test instead of countingDerek Foreman
a count of < 1 will just be a NULL pointer, and a count of > 0 will be non NULL, so we can simplify these conditionals.
2016-02-18ecore_drm: Add pointer warping APIDerek Foreman
Adds a new API: ecore_drm_device_pointer_warp() which warps the pointer to the specified location. All libinput seats with pointers are warped.
2016-02-18ecore-drm: Only queue re-flip on the head that needs itDerek Foreman
Prevents stuttering when a head that was successfully set bounces back to a previous frame the other head failed to set.
2016-02-18ecore_drm: Refactor ecore_drm_fb_send into two functionsDerek Foreman
We'll need to set outputs individually from the page flip handle to handle page flip problems, so we need the per output setting logic in its own function.
2016-02-18ecore_drm: Change page flipping logic so we can't tearDerek Foreman
Summary: Previously if we ever tried to queue up two page flips in less than a retrace interval (which can easily happen since the evas clock isn't based on vblank) we'd give up on ever using page flips again, and tear on every screen update. This fixes that by using a vblank callback for custom ticks and using page flips whenever possible. If a page flip fails it means a page flip raced with the vblank ticker, so we need to queue up that frame when the current page flip completes. This ensures that while we might drop interim frames, we will never lose the most recent. Now it should only be possible to tear if two ticks fire during the wait for a page flip to complete. This would result in rendering taking place in the front buffer. I don't think this can happen, but an error is logged if it does. Reviewers: zmike, devilhorns Subscribers: cedric, jpeg Differential Revision:
2016-02-15ecore-drm: Make ecore_drm_output_rotation_set fail properlyDuna Oh
When trying to set a rotation on a given output, we would previously always be returning EINA_TRUE. We should be returning EINA_FALSE when the rotation_set fails. @fix Summary: ecore_drm_output_rotation_set should be returning EINA_FALSE when the output doesn't have a plane of requested type. Test Plan: 1. call ecore_drm_output_rotation_set() with ECORE_DRM_PLANE_TYPE_CURSOR 2. If output doesn't have a plane of ECORE_DRM_PLANE_TYPE_CURSOR, the for statement does nothing. But return value is TRUE; Reviewers: raster, stefan_schmidt, gwanglim, devilhorns, zmike Subscribers: input.hacker, cedric, JHyun, ManMower, jpeg Differential Revision:
2016-02-04This should not have been pushed. RevertChris Michael
Revert "ecore-drm: Add API functions for rotation support" This reverts commit b8ceaf0d403ce640ed6a485a59a3bd5a7b06a260.
2016-02-04This should not have been pushed. Unsure what happened here, butChris Michael
revert this Revert "ecore-drm: Add opaque type for Plane support" This reverts commit 94082f54e8ce7d47402ea5d8d57e3871f8fa98a4.
2016-02-04ecore-drm: Add API functions for rotation supportChris Michael
This adds 2 new API functions for getting supported rotations of an output, and for setting rotation on an output @feature Signed-off-by: Chris Michael <>
2016-02-04ecore-drm: Add opaque type for Plane supportChris Michael
This adds an opaque structure to represent a hardware plane for use in rotation, setting cursor/overlay/primary plane content, etc Signed-off-by: Chris Michael <> ecore-drm: Add API functions for rotation support This adds 2 new API functions for getting supported rotations from an output, and for setting rotation on an output. @feature Signed-off-by: Chris Michael <>
2016-02-04ecore-drm: Add internal function to create planes for an outputChris Michael
This patch adds an internal function that we use during output creation in order to create the planes necessary and get the supported rotation values for an output Signed-off-by: Chris Michael <>
2016-02-04ecore-drm: Add API function to set rotation on an outputChris Michael
This patch adds an API function to allow the Screen Setup dialog in Enlightenment to support setting rotations on an output when running under drm @feature Signed-off-by: Chris Michael <>
2016-02-04ecore-drm: Add API function to get supported rotations from an outputChris Michael
This patch adds an API function so that we can get the supported rotations from an output. This is needed so that the Screen Setup dialog in Enlightenment can list the rotations supported for the user to choose from while running using drm @feature Signed-off-by: Chris Michael <>
2016-02-04ecore-drm: Add opaque structure for Ecore_Drm_PlaneChris Michael
Signed-off-by: Chris Michael <>
2016-01-21ecore-drm: Unify and cleanup tty codeChris Michael
This patch brings the tty code more inline with what the logind code Was doing. It also fixes the return value from the vt_signal handler, and opens the tty in non-blocking mode now. @fix Signed-off-by: Chris Michael <>
2016-01-21ecore-drm: Don't unset logind variable when disconnecting a deviceChris Michael
For a case where we have more than one device open, if we set the 'logind' variable to false, then the second device would never close properly. @fix Signed-off-by: Chris Michael <>
2016-01-21ecore-drm: Destroy any existing eeze watch when we free the deviceChris Michael
If a user frees a device without closing it we could end up with a dangling eeze watch. This small patch just makes sure to delete the watch if it exists @fix Signed-off-by: Chris Michael <>
2016-01-21ecore-drm: Refactor logind code to use tty functionsChris Michael
This patch cleans up some of the logind code to make use of the existing tty functions as they both did the same thing @fix Signed-off-by: Chris Michael <>
2016-01-21ecore-drm: Cleanup ecore-drm shutdown routineChris Michael
This patch addresses an issue where when closing Enlightenment, the shutdown procedure would previously end up calling the same functions twice. These functions should be called from the ecore_evas drm shutdown routine as the sprites, inputs, outputs, etc are all called from the ecore_evas drm init routine. @fix Signed-off-by: Chris Michael <>
2016-01-14ecore_drm/ecore_wl2: logging: remove errant usage of %mDerek Foreman
Summary: printf %m stringifies and prints errno. I've tried to remove its use anywhere that the immediately preceding function might not set errno or is a complicated function for which knowing errno doesn't really give any useful information. I've left a few of the drmMode calls because they're just wrappers around ioctl, which legitimately sets errno. @fix Reviewers: zmike, devilhorns Reviewed By: zmike, devilhorns Subscribers: cedric, jpeg Differential Revision: