Searched refs:xwl_pixmap (Results 1 – 6 of 6) sorted by relevance
| /OK3568_Linux_fs/external/xserver/hw/xwayland/ |
| H A D | xwayland-shm.c | 43 struct xwl_pixmap { struct 197 struct xwl_pixmap *xwl_pixmap; in xwl_shm_create_pixmap() local 212 xwl_pixmap = malloc(sizeof *xwl_pixmap); in xwl_shm_create_pixmap() 213 if (xwl_pixmap == NULL) in xwl_shm_create_pixmap() 218 xwl_pixmap->buffer = NULL; in xwl_shm_create_pixmap() 219 xwl_pixmap->size = size; in xwl_shm_create_pixmap() 224 xwl_pixmap->data = mmap(NULL, size, PROT_READ | PROT_WRITE, in xwl_shm_create_pixmap() 226 if (xwl_pixmap->data == MAP_FAILED) in xwl_shm_create_pixmap() 231 stride, xwl_pixmap->data)) in xwl_shm_create_pixmap() 235 pool = wl_shm_create_pool(xwl_screen->shm, fd, xwl_pixmap->size); in xwl_shm_create_pixmap() [all …]
|
| H A D | xwayland-glamor-eglstream.c | 50 struct xwl_pixmap *xwl_pixmap; member 78 struct xwl_pixmap { struct 275 xwl_eglstream_unref_pixmap_stream(struct xwl_pixmap *xwl_pixmap) in xwl_eglstream_unref_pixmap_stream() argument 277 struct xwl_screen *xwl_screen = xwl_pixmap->xwl_screen; in xwl_eglstream_unref_pixmap_stream() 279 if (--xwl_pixmap->refcount >= 1) in xwl_eglstream_unref_pixmap_stream() 287 if (eglGetCurrentSurface(EGL_READ) == xwl_pixmap->surface || in xwl_eglstream_unref_pixmap_stream() 288 eglGetCurrentSurface(EGL_DRAW) == xwl_pixmap->surface) { in xwl_eglstream_unref_pixmap_stream() 294 if (xwl_pixmap->surface) in xwl_eglstream_unref_pixmap_stream() 295 eglDestroySurface(xwl_screen->egl_display, xwl_pixmap->surface); in xwl_eglstream_unref_pixmap_stream() 297 eglDestroyStreamKHR(xwl_screen->egl_display, xwl_pixmap->stream); in xwl_eglstream_unref_pixmap_stream() [all …]
|
| H A D | xwayland-glamor-gbm.c | 60 struct xwl_pixmap { struct 134 struct xwl_pixmap *xwl_pixmap; in xwl_glamor_gbm_create_pixmap_for_bo() local 137 xwl_pixmap = malloc(sizeof *xwl_pixmap); in xwl_glamor_gbm_create_pixmap_for_bo() 138 if (xwl_pixmap == NULL) in xwl_glamor_gbm_create_pixmap_for_bo() 147 free(xwl_pixmap); in xwl_glamor_gbm_create_pixmap_for_bo() 152 xwl_pixmap->bo = bo; in xwl_glamor_gbm_create_pixmap_for_bo() 153 xwl_pixmap->buffer = NULL; in xwl_glamor_gbm_create_pixmap_for_bo() 154 xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display, in xwl_glamor_gbm_create_pixmap_for_bo() 157 xwl_pixmap->bo, NULL); in xwl_glamor_gbm_create_pixmap_for_bo() 158 if (xwl_pixmap->image == EGL_NO_IMAGE_KHR) in xwl_glamor_gbm_create_pixmap_for_bo() [all …]
|
| H A D | xwayland.h | 58 struct xwl_pixmap; 422 void xwl_pixmap_set_private(PixmapPtr pixmap, struct xwl_pixmap *xwl_pixmap); 423 struct xwl_pixmap *xwl_pixmap_get(PixmapPtr pixmap);
|
| H A D | xwayland.c | 469 xwl_pixmap_set_private(PixmapPtr pixmap, struct xwl_pixmap *xwl_pixmap) in xwl_pixmap_set_private() argument 471 dixSetPrivate(&pixmap->devPrivates, &xwl_pixmap_private_key, xwl_pixmap); in xwl_pixmap_set_private() 474 struct xwl_pixmap *
|
| /OK3568_Linux_fs/external/xserver/ |
| H A D | ChangeLog | 4062 objects and then creates the xwl_pixmap from it. 4085 (gdb) print xwl_pixmap 4086 $1 = (struct xwl_pixmap *) 0x0 10595 The crash is caused by dereferencing “xwl_pixmap->buffer” in 10596 xwl_glamor_pixmap_get_wl_buffer() because “xwl_pixmap” is NULL.
|