summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-03-21 14:21:14 -0500
committerChris Michael <cp.michael@samsung.com>2017-04-18 07:55:10 -0400
commit45e173d186cd3db210e974bfb82d7ffa52245026 (patch)
tree720af983a580346e916a0146f30da07346ad1810 /src/lib/ecore_drm2/ecore_drm2.c
parent86d1f2b6cd25ca6359b6388ec9b1be268b5599bf (diff)
ecore_drm2: Use library function instead of ioctl for addfb2
Minor clean up.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index b60641e..d3de6f3 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -41,6 +41,7 @@ void (*sym_drmModeFreePlaneResources)(drmModePlaneResPtr ptr) = NULL;
41void *(*sym_drmModeGetPlane)(int fd, uint32_t plane_id) = NULL; 41void *(*sym_drmModeGetPlane)(int fd, uint32_t plane_id) = NULL;
42void (*sym_drmModeFreePlane)(drmModePlanePtr ptr) = NULL; 42void (*sym_drmModeFreePlane)(drmModePlanePtr ptr) = NULL;
43int (*sym_drmModeAddFB)(int fd, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t pitch, uint32_t bo_handle, uint32_t *buf_id) = NULL; 43int (*sym_drmModeAddFB)(int fd, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t pitch, uint32_t bo_handle, uint32_t *buf_id) = NULL;
44int (*sym_drmModeAddFB2)(int fd, uint32_t width, uint32_t height, uint32_t pixel_format, uint32_t bo_handles[4], uint32_t pitches[4], uint32_t offsets[4], uint32_t *buf_id, uint32_t flags) = NULL;
44int (*sym_drmModeRmFB)(int fd, uint32_t bufferId) = NULL; 45int (*sym_drmModeRmFB)(int fd, uint32_t bufferId) = NULL;
45int (*sym_drmModePageFlip)(int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data) = NULL; 46int (*sym_drmModePageFlip)(int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data) = NULL;
46int (*sym_drmModeDirtyFB)(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips) = NULL; 47int (*sym_drmModeDirtyFB)(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips) = NULL;
@@ -117,6 +118,7 @@ _ecore_drm2_link(void)
117 SYM(drm_lib, drmModeGetPlane); 118 SYM(drm_lib, drmModeGetPlane);
118 SYM(drm_lib, drmModeFreePlane); 119 SYM(drm_lib, drmModeFreePlane);
119 SYM(drm_lib, drmModeAddFB); 120 SYM(drm_lib, drmModeAddFB);
121 SYM(drm_lib, drmModeAddFB2);
120 SYM(drm_lib, drmModeRmFB); 122 SYM(drm_lib, drmModeRmFB);
121 SYM(drm_lib, drmModePageFlip); 123 SYM(drm_lib, drmModePageFlip);
122 SYM(drm_lib, drmModeDirtyFB); 124 SYM(drm_lib, drmModeDirtyFB);