Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

DRA756: Offscreen rendering in weston client? WSEGL_CreatePixmapDrawable:594: Pixmap not supported in Wayland EGL

$
0
0

Part Number:DRA756

I want to create a argb texture for glFramebufferTexture2D in weston client.

wlpvr: ERROR: WSEGL_CreatePixmapDrawable:594: Pixmap not supported in Wayland EGL.

How to do offscreen rendering in weston client?

Thanks.

ti-processor-sdk-linux-am57xx-evm-05.02.00.10

code:

int dfd = omap_bo_dmabuf(buf->bo[0]);
struct gbm_import_fd_data gbm_dmabuf = {
.fd = dfd,
.width = buf->width,
.height = buf->height,
.stride = buf->pitches[0],
.format = GBM_FORMAT_ARGB8888
};

disp_wl->gbm.bo = gbm_bo_import(disp_wl->gbm.dev, GBM_BO_IMPORT_FD, &gbm_dmabuf,
GBM_BO_USE_RENDERING|GBM_BO_USE_SCANOUT);
if(!disp_wl->gbm.bo){
ERROR("gbm_bo_import failed\n");
return -1;
}

EGLint attrib_list = EGL_NONE;
buf_wl->egl_img = disp_wl->egl.eglCreateImageKHR(
disp_wl->egl.dpy,
EGL_NO_CONTEXT,
EGL_NATIVE_PIXMAP_KHR,
disp_wl->gbm.bo,
&attrib_list);


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>