Commit cfef64b0 authored by Dave Airlie's avatar Dave Airlie Committed by Kenneth Graunke

glamor: Add an accessor for the GBM device.

(Originally written by Dave Airlie; split into a separate patch by
Kenneth Graunke.)
Signed-off-by: default avatarDave Airlie <>
Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <>
Tested-by: Jason Ekstrand's avatarJason Ekstrand <>
Reviewed-by: Keith Packard's avatarKeith Packard <>
parent 98053575
......@@ -172,6 +172,8 @@ extern _X_EXPORT int glamor_egl_dri3_fd_name_from_tex(ScreenPtr, PixmapPtr,
extern void glamor_egl_destroy_pixmap_image(PixmapPtr pixmap);
extern _X_EXPORT void *glamor_egl_get_gbm_device(ScreenPtr screen);
/* @glamor_supports_pixmap_import_export: Returns whether
* glamor_fd_from_pixmap(), glamor_name_from_pixmap(), and
* glamor_pixmap_from_fd() are supported.
......@@ -174,6 +174,18 @@ glamor_create_texture_from_image(ScreenPtr screen,
return TRUE;
void *
glamor_egl_get_gbm_device(ScreenPtr screen)
struct glamor_egl_screen_private *glamor_egl =
return glamor_egl->gbm;
return NULL;
unsigned int
glamor_egl_create_argb8888_based_texture(ScreenPtr screen, int w, int h)
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