Tool/software: Linux
there are libdce test for Linux/DRM at git.ti.com/.../
after went through the code, i had some questions:
1. app (basing on libdce) must open drm device, and gst-plugins-ducati does it in the similar way, right?
I mean to "global_fd = drmOpen("omapdrm", NULL);"
is there any potential security issue?
how about does it in dce_init() instead?
2. there is no DRI2Authenticate() in display-wayland.c, why?
3. I want to give a quick try by skipping video rendering on a Wayland platform, then I can ignore all wayland operation in display-wayland.c
is it doable?
by the way, it seems there is a mistake in display-wayland.c line 086--093
I think the alignment should be done during omap_bo_new(), not after that, something like:
*pitch = ALIGN2(width*bpp/8, PAGE_SHIFT),
bo = omap_bo_new(disp->dev, pitch*height, bo_flags)
....
otherwise, when video width is much smaller comparing to pitch. bo_data_size/pitch will less than original height. for example:( assume bpp=8), 176x144 video resolution may create bo with size of 176x144x4; if pitch is 176x8, then we got final height of 144/2)
after another thought, use bpp to calculate pitch also doesn't sound good enough.