This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/devilhorns/apos
in repository efl.
View the commit online.
commit 54f199cfb59d604fa02dd59fea5447ac3e34592d
Author: Christopher Michael <[email protected]>
AuthorDate: Fri Aug 22 11:01:23 2025 -0500
ecore_drm2: Modify ecore_drm2_fb_data_get to support returning bits
per line
As we will end up using the bpl inside the evas drm engine, modify the
fb_data_get function to also return the bpl
---
src/lib/ecore_drm2/Ecore_Drm2.h | 2 +-
src/lib/ecore_drm2/ecore_drm2_fb.c | 11 ++++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 56862006f4..28244652b9 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -138,7 +138,7 @@ EAPI void ecore_drm2_display_gamma_set(Ecore_Drm2_Display *disp, uint16_t size,
/* Framebuffer API functions */
EAPI Ecore_Drm2_Fb *ecore_drm2_fb_create(Ecore_Drm2_Device *dev, int width, int height, int depth, int bpp, unsigned int format, void *bo);
EAPI void ecore_drm2_fb_dirty(Ecore_Drm2_Fb *fb, Eina_Rectangle *rects, unsigned int count);
-EAPI void *ecore_drm2_fb_data_get(Ecore_Drm2_Fb *fb);
+EAPI void *ecore_drm2_fb_data_get(Ecore_Drm2_Fb *fb, int *bpl);
EAPI unsigned int ecore_drm2_fb_size_get(Ecore_Drm2_Fb *fb);
EAPI unsigned int ecore_drm2_fb_stride_get(Ecore_Drm2_Fb *fb);
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 8b30e59dfd..acf015ee0e 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -145,9 +145,18 @@ ecore_drm2_fb_dirty(Ecore_Drm2_Fb *fb, Eina_Rectangle *rects, unsigned int count
}
EAPI void *
-ecore_drm2_fb_data_get(Ecore_Drm2_Fb *fb)
+ecore_drm2_fb_data_get(Ecore_Drm2_Fb *fb, int *bpl)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(fb, NULL);
+
+ if (bpl)
+ {
+ if (fb->strides[0] > 0)
+ *bpl = fb->strides[0];
+ else
+ *bpl = (fb->bpp * fb->w);
+ }
+
return fb->mmap;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.