Commit da7724d3 authored by Olivier Fourdan's avatar Olivier Fourdan Committed by Adam Jackson

xwayland: add glamor Xv adaptor

This adds an Xv adaptor using glamor.
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent d11fdff5
......@@ -32,7 +32,12 @@ Xwayland_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
if GLAMOR_EGL
Xwayland_SOURCES += xwayland-glamor.c
Xwayland_SOURCES += \
xwayland-glamor.c
if XV
Xwayland_SOURCES += \
xwayland-glamor-xv.c
endif
nodist_Xwayland_SOURCES = \
drm-client-protocol.h \
......
This diff is collapsed.
......@@ -569,5 +569,10 @@ xwl_glamor_init(struct xwl_screen *xwl_screen)
screen->CreatePixmap = xwl_glamor_create_pixmap;
screen->DestroyPixmap = xwl_glamor_destroy_pixmap;
#ifdef XV
if (!xwl_glamor_xv_init(screen))
ErrorF("Failed to initialize glamor Xv extension\n");
#endif
return TRUE;
}
......@@ -190,6 +190,11 @@ Bool xwl_screen_init_glamor(struct xwl_screen *xwl_screen,
uint32_t id, uint32_t version);
struct wl_buffer *xwl_glamor_pixmap_get_wl_buffer(PixmapPtr pixmap);
#ifdef XV
/* glamor Xv Adaptor */
Bool xwl_glamor_xv_init(ScreenPtr pScreen);
#endif
#ifdef XF86VIDMODE
void xwlVidModeExtensionInit(void);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment